Skip to content
/ V14Handler Public template

A Discord Command Handler Based On Discord.js V14

Notifications You must be signed in to change notification settings

Frazix12/V14Handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V14 Handeler



If Using VSCode I Added Snippets So Just Type !djs and it 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
  },
};

About

A Discord Command Handler Based On Discord.js V14

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages