diff options
Diffstat (limited to '174bg/discord-bot/source')
| -rw-r--r-- | 174bg/discord-bot/source/commands/close-ticket.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/174bg/discord-bot/source/commands/close-ticket.js b/174bg/discord-bot/source/commands/close-ticket.js index ca3040e..a4207f9 100644 --- a/174bg/discord-bot/source/commands/close-ticket.js +++ b/174bg/discord-bot/source/commands/close-ticket.js @@ -10,7 +10,7 @@ export default { execute: async (interaction) => { const channel = interaction.channel; - if (!channel || !channel.name.startsWith("ticket-")) { + if (!channel || !channel.parent || channel.parent.name.toLowerCase() !== "tickets") { return await interaction.reply({ content: "This command can only be used in a ticket channel.", ephemeral: true, |
