i can't get multiple roles uisng addroleopts

.addRoleOption(option =>
option
.setName('role')
.setDescription('Select a role to give')
.setRequired(true)


)
.addRoleOption(option =>
option
.setName('role')
.setDescription('Select a role to give')
.setRequired(true)


)
6 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 OP
chewie
chewie9mo ago
What exactly is your issue?
AgEnT007
AgEnT007OP9mo ago
I want to make a self role select system so when I want to get multiple roles from addroleoption while entering the command like /self-role-system setup
roles:
roles:
role1, role2
chewie
chewie9mo ago
You can only select one role with that option.
AgEnT007
AgEnT007OP9mo ago
So how to get multiple roles?
chewie
chewie9mo ago
You don't? All options on slash commands only allow one value. Not more. Either add more options or rethink your strategy.
Want results from more Discord servers?
Add your server