#setDefaultMemberPermissions() for one of two roles that have same permissions

6 messages · Page 1 of 1 (latest)

vague socket
#

How can I set default member permission to a slash command? I know there's .setDefaultMemberPermissions(), but I have two roles that have the same permissions, and I'd like only one of them to get access to this command.

discord.js: 14.11.0

iron dustBOT
#

• 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.

lyric dock
#

Then set that as a Guild admin in discord settings. DefaultMemberPermissions are for setting what permissions are needed for the command. Role-based command permissions are in the jurisdiction of guild admins, not the bot developer

vague socket
#

even if the bot is for one guild? rip Nekocry

#

the two roles have same permissions except access to few other channels

lyric dock