Skip to content

Application command example

Enriko 'HybridMind' Todorov edited this page Jun 8, 2023 · 1 revision

Application command structures

Example command:

const { } = require('discord.js');

module.exports = {
    command_data: {
        name: String,
        description: String,
        type: Number,
        options: Array[Object],
    },
    role_perms: Array[String],
    developers_only: Boolean,
    owner_only: Boolean,
    cooldown: String,
    logger: Boolean,
    category: String,
    run: function (...args) { }
};
Clone this wiki locally