Permissions

Command can have Discord-Based Permissions, Role-Based Permissions or even both of them. Permissions can be changed by editing Configuration File commands.yml and changing permissions and role fields.

An Example

Here we'll show you an example of playing with Command Permissions.

# Command Name
ping:
  # Ids or Names of Roles which can use this command
  roles: []
  aliases: []
  # Discord Permissions which are required in order to use
  # command
  permissions: []
  description: "Ping Bot"
  usage: "ping"
  ephemeral: false
  cooldown: 0
  enabled: true

On Example we added few comments to help you to figure out what does what, if you want to let everyone use command then set role field to "" and permissions field to [].

To learn more about commands.yml go to Configuration Page.

Last updated