I know how to make it so that only ME can use a slash command, that way if someone isn’t me and tries to use my slash command it will be gray like :
client.application.commands.permissions.set([
{
id : cmd.id,
permissions : [
{
type : 'USER',
id : 'My id',
permission : true
}
]
}
])
How to do the same thing for permissions ? How to do it so that only members with a specific role can use the command ?