Slash Command Permissions
How do I do role based permissions with slash commands?
20 Replies
• 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.You can filter through it on interactionCreate event
You can give commands a
permissions: […]
property like that and then check for command.permissions
and filter like thatWill that hide the command for roles that can't use it?
No
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Not usefull, thats for permission based
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I swear you used to be able to do user / role and it would grey out the command for those without the role
I'll do that
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Can I do the reverse of this and only allow 1 role to use it
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
update: it says 401 unauthorized when trying to make the api call to add the perms
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
is it not just my discord bot token?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
How do I do that?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Oh
So it's done through like a user?
not the bot
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View