#How would I add an option if the interaction executor has a certain role

8 messages · Page 1 of 1 (latest)

wispy pecan
#

Hello, I'd like to add an option between 2 others only if the command executor has a certain role?
discord.js v14

ember briarBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

orchid olive
#

interaction.member is a regular GuildMember instance representing the guild bound data for the user that used the command, if it was used within a cached guild

ember briarBOT
wispy pecan
#

/docs tss

wispy pecan
orchid olive
#

can't do that

wispy pecan
#

so we need to have different commands?