#Slash command with limited roles selection

4 messages · Page 1 of 1 (latest)

shadow basin
#

Hey there guys, im looking for a way to make a slash command with addRoleOption but limited to roles with specific position. Is it somehow possible to do it with that or do I have to resort to a more custom solution.

south horizonBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
somber ravine
#

Your only choice is using a string option with choices.

#

addRoleOption is auto populated by discord and cant be changed