From 6bc15403e1f1c3bc7042bb8066172b0f6a312ac5 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 8 Mar 2022 20:22:55 -0500 Subject: fix(AppealListener): only run in production --- src/listeners/bush/appealListener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { - 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; -- cgit