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
create:
# Role(s) Required to run Command, leave empty for none
# User need at least one role from list.
roles: []
# Command Aliases, leave [] for none,
# Example:
# aliases: ["setup"]
aliases: ["setup"]
# Cooldown for Command in seconds
cooldown: 0
# Discord Permission Required to run Command, leave [] for none
# Example:
# permissions: ["ADMINISTRATOR"]
permissions: []
# Command Description
description: "Create aspect from Config"
# Command Usage
usage: "create [Template Name]"
# Is Command Enabled
enabled: trueOn 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
Was this helpful?