Skip to content

Commit

Permalink
Update command_example.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kabirjaipal authored Jul 20, 2022
1 parent 3fa4266 commit 1523707
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions command_example.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// chat input slash commands
const {
Client,
CommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");
const { CommandInteraction, ApplicationCommandType } = require("discord.js");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
Expand All @@ -16,7 +12,7 @@ module.exports = {
type: ApplicationCommandType.ChatInput,
/**
*
* @param {Client} client
* @param {BOT} client
* @param {CommandInteraction} interaction
* @param {String[]} args
*/
Expand All @@ -27,19 +23,18 @@ module.exports = {

// message input slash commands
const {
Client,
ContextMenuCommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
category: "",
type: ApplicationCommandType.Message,
/**
*
* @param {Client} client
* @param {BOT} client
* @param {ContextMenuCommandInteraction} interaction
*/
run: async (client, interaction) => {
Expand All @@ -50,19 +45,18 @@ module.exports = {
// user slash commands

const {
Client,
ContextMenuCommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
category: "",
type: ApplicationCommandType.User,
/**
*
* @param {Client} client
* @param {BOT} client
* @param {ContextMenuCommandInteraction} interaction
*/
run: async (client, interaction) => {
Expand All @@ -71,8 +65,8 @@ module.exports = {
};

// message commands
const { Client, Message } = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");
const { Message } = require("discord.js");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
Expand All @@ -83,7 +77,7 @@ module.exports = {
cooldown: 10,
/**
*
* @param {Client} client
* @param {BOT} client
* @param {Message} message
* @param {String[]} args
* @param {String} prefix
Expand Down

0 comments on commit 1523707

Please sign in to comment.