-
Im very new, be gentle. Ive made a lot of progress but Im still rather stumped around component handlers. I can get my slash commands to work, but I dont think its the best way. I have the slash command files, interactionCreate, handleComponents, handleCommands, handleEvents and then matching folder structure (see below). Here's the one command cant seem to figure out. It's subcommand
The component file:
the selectMenu case from handleComponents:
finally from the interactionCreate.js:
-src |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In your component file the parameter |
Beta Was this translation helpful? Give feedback.
In your component file the parameter
interaction
will already be theStringSelectMenuInteraction
, you starting a collector in there would basically start a new collector every time they select something. Don’t do that, instead put the code of your collect event there directly into the execute of the component file.Secondly I don’t see why you would do all that in DMs when you already have an ephemeral reply you could attach that SelectMenu to so the user doesn’t have to switch channels to complete the process.
And lastly join the discord support server to continue this in a forum thread on there.