Skip to content

$addApplicationCommandPermissions

Usage

$addApplicationCommandPermissions[guildID/global?;id;...perms]

Parameters

FieldTypeDescriptionRequired
guildID/globalstring, numberApplication command type.
1. global
2. specific guildID
true
idnumberApplication command ID.true
…permsstringPermissions.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 ):

1
client.command({
2
name: "addApplicationCommandPermissions",
3
code: `
4
$addApplicationCommandPermissions[$guildID;ID;[
5
{
6
id: '$guildID',
7
type: 'ROLE',
8
permission: false
9
}
10
]]`
11
});