-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
command_example.js
103 lines (93 loc) · 2.07 KB
/
command_example.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// chat input slash commands
const { CommandInteraction, ApplicationCommandType } = require("discord.js");
const LRMN = require("../../../handlers/Client");
const { Queue } = require("distube");
module.exports = {
name: "",
description: ``,
userPermissions: [],
botPermissions: [],
category: "",
cooldown: 10,
type: ApplicationCommandType.ChatInput,
inVoiceChannel: false,
inSameVoiceChannel: false,
Player: false,
djOnly: false,
/**
*
* @param {LRMN} client
* @param {CommandInteraction} interaction
* @param {String[]} args
* @param {Queue} queue
*/
run: async (client, interaction, args, queue) => {
// Code
},
};
// message input slash commands
const {
ContextMenuCommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const LRMN = require("../../../handlers/Client");
module.exports = {
name: "",
category: "",
type: ApplicationCommandType.Message,
/**
*
* @param {LRMN} client
* @param {ContextMenuCommandInteraction} interaction
*/
run: async (client, interaction) => {
// Code
},
};
// user slash commands
const {
ContextMenuCommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const LRMN = require("../../../handlers/Client");
module.exports = {
name: "",
category: "",
type: ApplicationCommandType.User,
/**
*
* @param {LRMN} client
* @param {ContextMenuCommandInteraction} interaction
*/
run: async (client, interaction) => {
// Code
},
};
// message commands
const { Message } = require("discord.js");
const LRMN = require("../../../handlers/Client");
const { Queue } = require("distube");
module.exports = {
name: "",
aliases: [],
description: ``,
userPermissions: [],
botPermissions: [],
category: "",
cooldown: 10,
inVoiceChannel: false,
inSameVoiceChannel: false,
Player: false,
djOnly: false,
/**
*
* @param {LRMN} client
* @param {Message} message
* @param {String[]} args
* @param {String} prefix
* @param {Queue} queue
*/
run: async (client, message, args, prefix, queue) => {
// Code
},
};