aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-14 20:26:02 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-14 20:26:02 -0400
commitace921e14d7772b5bd5ef70dee99ee5a5599f118 (patch)
tree1c3a5d13bb47fa2973919dee60bfb92cfa907391 /src/commands/moulberry-bush
parente822187f8a69a171bea001dc0bfa396179a009cb (diff)
downloadtanzanite-ace921e14d7772b5bd5ef70dee99ee5a5599f118.tar.gz
tanzanite-ace921e14d7772b5bd5ef70dee99ee5a5599f118.tar.bz2
tanzanite-ace921e14d7772b5bd5ef70dee99ee5a5599f118.zip
add bugs-with-cool-version-of-neu to solved command
Diffstat (limited to 'src/commands/moulberry-bush')
-rw-r--r--src/commands/moulberry-bush/solved.ts4
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']}>.`
);