V14 Handeler

If Using VSCode I Added Snippets So Just Type !djs and ait will show all commands

Snippets Preview

Normal SlashCommand

const {
  Client,
  CommandInteraction,
  ApplicationCommandType,
} = require("discord.js");
const ee = require("../../configs/embed").embed;
const emoji = require("../../configs/emoji").emoji;

module.exports = {
  name: "",
  description: ``,
  userPermissions: [],
  botPermissions: [],
  category: "",
  cooldown: 10,
  type: ApplicationCommandType.ChatInput,
  /**
   *
   * @param {Client} client
   * @param {CommandInteraction} interaction
   * @param {String[]} args
   */
  run: async (client, interaction, args) => {
    // Code
  },
};

Message Input SlashCommand

const {
  Client,
  ContextMenuCommandInteraction,
  ApplicationCommandType,
} = require("discord.js");
const ee = require("../../configs/embed").embed;
const emoji = require("../../configs/emoji").emoji;

module.exports = {
  name: "",
  category: "",
  type: ApplicationCommandType.Message,
  /**
   *
   * @param {Client} client
   * @param {ContextMenuCommandInteraction} interaction
   */
  run: async (client, interaction) => {
    // Code
  },
};

User Input SlashCommand

const {
  Client,
  ContextMenuCommandInteraction,
  ApplicationCommandType,
} = require("discord.js");
const ee = require("../../configs/embed").embed;
const emoji = require("../../configs/emoji").emoji;

module.exports = {
  name: "",
  category: "",
  type: ApplicationCommandType.User,
  /**
   *
   * @param {Client} client
   * @param {ContextMenuCommandInteraction} interaction
   */
  run: async (client, interaction) => {
    // Code
  },
};

GitHub

View Github