diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-08 20:22:55 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-08 20:22:55 -0500 |
commit | 6bc15403e1f1c3bc7042bb8066172b0f6a312ac5 (patch) | |
tree | 98f3335931803f75c8b1d44c5e980e3b55c4790c /src/listeners/bush | |
parent | 9c08b98330b9f319a32c941958bba702bc87882b (diff) | |
download | tanzanite-6bc15403e1f1c3bc7042bb8066172b0f6a312ac5.tar.gz tanzanite-6bc15403e1f1c3bc7042bb8066172b0f6a312ac5.tar.bz2 tanzanite-6bc15403e1f1c3bc7042bb8066172b0f6a312ac5.zip |
fix(AppealListener): only run in production
Diffstat (limited to 'src/listeners/bush')
-rw-r--r-- | src/listeners/bush/appealListener.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listeners/bush/appealListener.ts b/src/listeners/bush/appealListener.ts index 7ac9fda..1dacb19 100644 --- a/src/listeners/bush/appealListener.ts +++ b/src/listeners/bush/appealListener.ts @@ -15,7 +15,7 @@ export default class AppealListener extends BushListener { } public override async exec(...[message]: BushClientEvents['messageCreate']): Promise<any> { - if (!message.inGuild() || message.guildId !== client.consts.mappings.guilds.bush) return; + if (!client.config.isProduction || !message.inGuild() || message.guildId !== client.consts.mappings.guilds.bush) return; if (message.author.id !== '855446927688335370' || message.embeds.length < 1) return; const userId = message.embeds[0].fields?.find?.((f) => f.name === 'What is your discord ID?')?.value; |