forked from KCCHDEV/DAL-Music-Bot-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand_exapmle.js
47 lines (41 loc) · 1.01 KB
/
command_exapmle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// slash command
const { Command } = require("reconlx");
const emoji = require("../../settings/emoji.json");
const embed = require("../../settings/embed.json");
const config = require("../../settings/config.json");
module.exports = new Command({
// options
name: "",
description: ``,
userPermissions: [],
botPermissions: [],
category: "",
cooldown: 10,
// command start
run: async ({ client, interaction, args, prefix }) => {
// Code
},
});
// message command aka prefix cmd
const { Message, Client } = require("discord.js");
const emoji = require("../../settings/emoji.json");
const embed = require("../../settings/embed.json");
const config = require("../../settings/config.json");
module.exports = {
name: "",
aliases: [""],
description: ``,
userPermissions: [],
botPermissions: [],
category: "",
cooldown: 10,
/**
*
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async (client, message, args , prefix) => {
// code
},
};