-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomponent.example.txt
37 lines (32 loc) · 886 Bytes
/
component.example.txt
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
const { } = require('discord.js');
const ExtendedClient = require('../../classes/ExtendedClient');
module.exports = {
customId: '',
options: {
public: boolean
},
/**
*
* @param {ExtendedClient} client
* @param {*} interaction
*/
run: async (client, interaction) => {
}
};
// auto complete interaction
const { } = require('discord.js');
const ExtendedClient = require('../../classes/ExtendedClient');
module.exports = {
commandName: '', // The name of the command that has the autocomplete action
options: {
public: true // Whether this autocomplete is public or restricted
},
/**
*
* @param {ExtendedClient} client
* @param {import('discord.js').AutocompleteInteraction} interaction
*/
run: async (client, interaction) => {
// Autocomplete interaction logic
}
};