Skip to content

$onlyClientPerms

$onlyClientPerms will check if the bot has the listed permission and return a error message if not.

Usage

$onlyClientPerms[...perms;error]

Parameters

FieldTypeDescriptionRequired
…permsstringPermission that the bot requires.true
errorstringError to return when the bot has not the listed permissions.true

You can find all permissions here.

Example(s)

This will limit the command to work only when the Bot has administrator permissions:

1
client.command({
2
name: "onlyClientPerms",
3
code: `
4
Ok.
5
$onlyClientPerms[administrator;I don't have administrator permissions!]
6
`
7
});