Just a question, dropdown menu (detailed in message)

how can you add roles to a person who selected a specific option from dropdown menu
4 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
SpyCat(Billi)
SpyCat(Billi)9mo ago
discord.js v14.13.0 node js v20.7.0
Squid
Squid9mo ago
Get the specific option with <SelectMenuInteraction>.values which is an array of the values that the member selected Add the role with <SelectMenuInteraction>.member.roles.add(<RoleResolvable>)
SpyCat(Billi)
SpyCat(Billi)9mo ago
oh ok thx