Skip to content

Trying to figure out what code goes into the component files and not the command files. #9733

Closed Locked Answered by Qjuh
mh1723 asked this question in Q&A
Discussion options

You must be logged in to vote

In your component file the parameter interaction will already be the StringSelectMenuInteraction, 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jiralite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants