Commands settings
DeleterApi/private/guilds/:id/commands
Get Commands Settings
GET https://api.deleter.xyz/stable/private/guilds/:id/commands
This endpoint allows you to get guild's commands settings.
Headers
Name
Type
Description
Authorization
string
Bearer FfuydfggjFGuyrg 247734710682255361
{
choose: {
disabled: false,
disabledOn: [], // disabled channels
disabledToRoles: [], // disabled roles
_command: {
name: 'choose',
ru: [ CommandDetails ],
en: [ CommandDetails ],
gg: [ CommandDetails ]
}
},
avatar: {
disabled: false,
disabledOn: [],
disabledToRoles: [],
_command: {
name: 'avatar',
ru: [ CommandDetails ],
en: [ CommandDetails ],
gg: [ CommandDetails ]
}
}
}Save Commands Settings
PATCH https://api.deleter.xyz/stable/private/guilds/:id/commands
This endpoint allows you save guild's commands settings.
Headers
Name
Type
Description
Authorization
string
Bearer FfuydfggjFGuyrg 247734710682255361
Request Body
Name
Type
Description
disabledOn
array
Array of channels IDs that will be ignored by command
disabledToRoles
array
Array of roles IDs that will be ignored by command
disabled
boolean
Whether command is disabled
Last updated