$onlyBotPerms
The command can be executed if bot has all of the provided permissions.
Usage
$onlyBotPerms[permissions;...;errorMessage]
Breakdown
permissions
- The permissions that the bot needs to run the command. Use;
as separator for multiple permissions.errorMessage
- The message to return when the bot doesn't have all the provided permissions.
Example
$nomention
$onlyBotPerms[sendmessages;embedlinks;Missing permissions!]
$description[Hey! I have `embed links` permission.]