$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.
  • errorMessage - The message to return when the bot doesn't have all the provided permissions.