🎟️
Champion Tickets
DiscordBuiltByBit
  • Tebex Themes Docs
  • Champion Ultra Docs
  • Champion Ptero Docs
  • Welcome
    • Introduction
    • Commands
      • Permissions
    • Features
    • Images
  • Installation & Setup
    • Newbie Guide
    • Requirements
    • Bot Application Setup
    • Linux Installation
    • Invite Link
    • Pterodactyl
    • Database
      • v1.7.6 Migration
      • Change DB Type
      • Mongo Database
      • database-actions addon
  • Configuration
    • config.yml
    • categories.yml
    • commands.yml
    • language.yml
    • embeds.yml
    • products.yml
  • Addons
    • Example Addon
    • Creating Addons
    • Selling Addons
  • Other
    • Basic Server Configuration
    • SelfHost Transcripts
    • Dashboard Setup
    • Errors
    • PayPal (Invoices)
    • Tebex & Sellix
    • Update v1.7.8
Powered by GitBook
On this page

Was this helpful?

  1. Welcome
  2. Commands

Permissions

PreviousCommandsNextFeatures

Last updated 3 years ago

Was this helpful?

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
add:
  # ID of Role which can use this Command
  roles: []
  aliases: []
  # Discord Permission(s) Required to use Command
  permissions: ["MANAGE_MESSAGES"]
  description: "Add User to Ticket"
  usage: "add [@User]"
  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.

commands.yml