From 921e98369c8a8aa58220a232eb8b711be59f9884 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 26 Aug 2021 21:53:51 -0400 Subject: start settings command --- src/listeners/client/interactionCreate.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/listeners/client') diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts index b4cc353..d2bc6b5 100644 --- a/src/listeners/client/interactionCreate.ts +++ b/src/listeners/client/interactionCreate.ts @@ -25,10 +25,10 @@ export default class InteractionCreateListener extends BushListener { ); return; } else if (interaction.isButton()) { - if (interaction.customId.startsWith('paginate_')) return; + if (interaction.customId.startsWith('paginate_') || interaction.customId.startsWith('command_')) return; return await interaction.reply({ content: 'Buttons go brrr', ephemeral: true }); } else if (interaction.isSelectMenu()) { - if (interaction.customId.startsWith('featureCommand_')) return; + if (interaction.customId.startsWith('command_')) return; return await interaction.reply({ content: `You selected ${ Array.isArray(interaction.values) @@ -37,15 +37,6 @@ export default class InteractionCreateListener extends BushListener { }.`, ephemeral: true }); - } /* else if (interaction.isContextMenu()) { - if (interaction.commandName === 'View Raw') { - await interaction.deferReply({ ephemeral: true }); - const embed = await ViewRawCommand.getRawData(interaction.options.getMessage('message') as BushMessage, { - json: false, - js: false - }); - return await interaction.editReply({ embeds: [embed] }); - } - } */ + } } } -- cgit