$onlyClientPerms
$onlyClientPerms
will check if the bot has the listed permission and return a error message if not.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
…perms | string | Permission that the bot requires. | true |
error | string | Error 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: