select specific role in menu

hi, i want to make menu, where i can selest specified role. first i wanted to use RoleSelectMenuBuilder, but i found out i can't specify which roles show up in this menu. So now i have to use StringSelectMenuBuilder, but i have no clue how to make it to give roles
2 Replies
d.js toolkit
d.js toolkit15mo 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!
treble/luna
treble/luna15mo ago
you can only add strings to a stringselectmenu hence its name so you'll have to use the id of the role then get it in the interactionCreate and add / set it
Want results from more Discord servers?
Add your server