You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user context message context and slash commands can have the same command name however your handler does not distinguish between the 3 and always runs the code for the slash command. regardless of the .js files actual name.
example if you have contexttest.js and its registered as type: ApplicationCommandType.message, with a name of test and you have a slashtest.js registered as type type: ApplicationCommandType.ChatInput, when you use the context menu it runs slashtest.js even though contexttest.js was the registered context message command with discord.
The text was updated successfully, but these errors were encountered:
user context message context and slash commands can have the same command name however your handler does not distinguish between the 3 and always runs the code for the slash command. regardless of the .js files actual name.
example if you have contexttest.js and its registered as type: ApplicationCommandType.message, with a name of test and you have a slashtest.js registered as type type: ApplicationCommandType.ChatInput, when you use the context menu it runs slashtest.js even though contexttest.js was the registered context message command with discord.
The text was updated successfully, but these errors were encountered: