RileCraft / DiscordBot-Template

A bot template with command , event , button , selectmenus , slashcommands handler and error handlers. Made in Discord.JS V14
MIT License
229 stars 59 forks source link

Select Menus won't respond. #46

Closed Noxxe-0001 closed 2 years ago

Noxxe-0001 commented 2 years ago

Describe the issue Select menus won't respond when I create a new select menu and then create a new select menu with the name set as the customId for the select menu, I have read the documentation, it says that I can either put the custom ID of the select menu or one of the option values. When I put the value, it works, but when I use the custom ID it does not and I know your probably gonna say "Well just use the values" but I don't want to as it means I have to create like 13 different files for one command and I don't want to do that. Is it something that I am doing wrong, or is something that is wrong with code.

Screenshots When I use the customId of the select menu, nothing happens.

This is the message action row with the select menu.

When I use the select menu with the custom id, nothing happens nothing is logged in the console. Link to the video Host Details:

Additional context Is it something that I am doing wrong, or is it something wrong with the source code?

RileCraft commented 2 years ago

There was a small problem in InteractionCreate event file which only took selectMenu's customId when the other values were none. Found a solution to this.

Fixed in latest version.

Noxxe-0001 commented 2 years ago

Cheers dude!