#how do i role check before executing a slash command?

1 messages · Page 1 of 1 (latest)

stiff harness
#

im trying to make a slash command that gives a user a role, but if someone without the admin role tries it it wont work

vapid stone
#

use @discord.default_permissions for this

#

role checks are somewhat deprecated / outdated for slash commands

quick shadow
#

If you want a command to be role accessible you set that up in
server settings -> Integrations -> your bot -> your command
not in the code