diff --git a/src/commands/slash/force-close.js b/src/commands/slash/force-close.js index 261a34c6b..977c06347 100644 --- a/src/commands/slash/force-close.js +++ b/src/commands/slash/force-close.js @@ -139,6 +139,7 @@ module.exports = class ForceCloseSlashCommand extends SlashCommand { const tickets = await client.prisma.ticket.findMany({ where: { categoryId: categoryId ?? undefined, // must be undefined not null + guildId: interaction.guild.id, lastMessageAt: { lte: new Date(Date.now() - time) }, open: true, },