diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-30 21:36:34 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-30 21:36:34 -0500 |
commit | 5481971d8dae490a467dd592ca301e72acb2254a (patch) | |
tree | 4fe3c5b5f50b8d0eda04018f8906ec806b1d9b56 /src/listeners/client | |
parent | 83db032fb91996c926a5d007a9e5fa4abed65871 (diff) | |
download | tanzanite-5481971d8dae490a467dd592ca301e72acb2254a.tar.gz tanzanite-5481971d8dae490a467dd592ca301e72acb2254a.tar.bz2 tanzanite-5481971d8dae490a467dd592ca301e72acb2254a.zip |
A bit of fixing
Diffstat (limited to 'src/listeners/client')
-rw-r--r-- | src/listeners/client/akairoDebug.ts | 6 | ||||
-rw-r--r-- | src/listeners/client/interactionCreate.ts | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/listeners/client/akairoDebug.ts b/src/listeners/client/akairoDebug.ts index c8a28c4..0cb57a5 100644 --- a/src/listeners/client/akairoDebug.ts +++ b/src/listeners/client/akairoDebug.ts @@ -9,7 +9,9 @@ export default class DiscordJsDebugListener extends BushListener { }); } - public override async exec(...[message, ..._other]: BushClientEvents['debug']): Promise<void> { - void client.console.superVerboseRaw('akairoDebug', message); + public override async exec(...[message, ...other]: BushClientEvents['debug']): Promise<void> { + if (other.length && !message.includes('[registerInteractionCommands]')) + void client.console.superVerboseRaw('akairoDebug', message, ...other); + else void client.console.superVerbose('akairoDebug', message); } } diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts index 26aa0a9..7eb2f10 100644 --- a/src/listeners/client/interactionCreate.ts +++ b/src/listeners/client/interactionCreate.ts @@ -20,8 +20,9 @@ export default class InteractionCreateListener extends BushListener { if (interaction.isCommand()) { return; } else if (interaction.isButton()) { - if (interaction.customId.startsWith('paginate_') || interaction.customId.startsWith('command_')) return; - else if (interaction.customId.startsWith('automod;')) void AutoMod.handleInteraction(interaction as BushButtonInteraction); + const id = interaction.customId; + if (id.startsWith('paginate_') || id.startsWith('command_') || id.startsWith('confirmationPrompt_')) 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()) { if (interaction.customId.startsWith('command_')) return; |