diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/moulberry-bush/solved.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/moulberry-bush/solved.ts b/src/commands/moulberry-bush/solved.ts index 8e123c4..ac7684a 100644 --- a/src/commands/moulberry-bush/solved.ts +++ b/src/commands/moulberry-bush/solved.ts @@ -24,7 +24,9 @@ export default class Solved extends BushCommand { if (!message.channel.isThread()) return message.util.reply(`${emojis.error} This command can only be used in threads.`); - if (message.channel.parentId !== mappings.channels['neu-support']) + const allowed = [mappings.channels['neu-support'], '1006832334638678057']; + + if (!allowed.some((id) => message.channel!.parentId === id)) return message.util.reply( `${emojis.error} This command can only be used in thread that are created in <#${mappings.channels['neu-support']}>.` ); |