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
- 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!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