aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/client
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-13 20:39:09 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-13 20:39:09 -0500
commit3d0f8d6284fbff51881ba704f73765100ffc5f47 (patch)
tree43cd14b46b32583cea76b5e0edd709b1c8642636 /src/listeners/client
parent6a7386a181e788927a4c04e5b39ac2a4275918b6 (diff)
downloadtanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.tar.gz
tanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.tar.bz2
tanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.zip
started working on appeals
Diffstat (limited to 'src/listeners/client')
-rw-r--r--src/listeners/client/interactionCreate.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts
index 636bb6e..40315a0 100644
--- a/src/listeners/client/interactionCreate.ts
+++ b/src/listeners/client/interactionCreate.ts
@@ -20,7 +20,7 @@ export default class InteractionCreateListener extends BushListener {
return;
} else if (interaction.isButton()) {
const id = interaction.customId;
- if (id.startsWith('paginate_') || id.startsWith('command_') || id.startsWith('confirmationPrompt_')) return;
+ if (['paginate_', 'command_', 'confirmationPrompt_', 'appeal'].some((s) => id.startsWith(s))) return;
else if (id.startsWith('automod;')) void AutoMod.handleInteraction(interaction as BushButtonInteraction);
else return await interaction.reply({ content: 'Buttons go brrr', ephemeral: true });
} else if (interaction.isSelectMenu()) {