diff --git a/src/listeners/interactionCreator.ts b/src/listeners/interactionCreator.ts index 03c1be0..2a84bb5 100644 --- a/src/listeners/interactionCreator.ts +++ b/src/listeners/interactionCreator.ts @@ -3,13 +3,12 @@ import { Commands } from "../commandCenter/Commands"; export default (client: Client): void => { client.on("interactionCreate", async (interaction: Interaction) => { - if (interaction.isCommand() || interaction.isContextMenuCommand()) { + if (interaction.isCommand()) { await handleSlashCommand(client, interaction) } }) } const handleSlashCommand = async (client: Client, interaction: CommandInteraction): Promise => { - // this is where the slash command will be handled const slashCommand = Commands.find(command => command.name === interaction.commandName); if (!slashCommand) { interaction.followUp({content: 'we havea problem'})