#slash command permission
1 messages · Page 1 of 1 (latest)
I don't believe that its built into Discord directly
However you can run your own checks inside of the command callback and use await ctx.respond to tell users if they are lacking the roles
In discord.
server settings -> integrations -> "your bot" -> the command you want to limit -> set everyone to false and add the other role to true
Oh yeah I forgot about that
how to make it guild only
@commands.guild_only()
nope
i'm talking to be only appear in guilds meanwhile in dms it doesn't appear
it's @discord.guild_only() in that case
use decorator
@commands.has_permissions(manage_roles=True) before defing slash comand