$addApplicationCommandPermissions
Usage
$addApplicationCommandPermissions[guildID/global?;id;...perms]
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID/global | string, number | Application command type. 1. global 2. specific guildID | true |
id | number | Application command ID. | true |
…perms | string | Permissions. | true |
Example(s)
This will disable the slash command for everyone in the guild ( make sure to replace “ID” with the actual slash command ID ):
1client.command({2 name: "addApplicationCommandPermissions",3 code: `4 $addApplicationCommandPermissions[$guildID;ID;[5 {6 id: '$guildID',7 type: 'ROLE',8 permission: false9 }10]]`11});