#how do i role check before executing a slash command?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
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
use @discord.default_permissions for this
role checks are somewhat deprecated / outdated for slash commands
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