From ace921e14d7772b5bd5ef70dee99ee5a5599f118 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 14 Aug 2022 20:26:02 -0400 Subject: add bugs-with-cool-version-of-neu to solved command --- src/commands/moulberry-bush/solved.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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']}>.` ); -- cgit