Missing an intent to capture the event that I want
This commit is contained in:
parent
b9a699c4c2
commit
27e9fdb743
@ -26,7 +26,7 @@ const getAllFiles = function(directoryPath, arrayOfFiles) {
|
|||||||
const allFiles = [];
|
const allFiles = [];
|
||||||
getAllFiles('.' + path.sep + 'commands', allFiles);
|
getAllFiles('.' + path.sep + 'commands', allFiles);
|
||||||
|
|
||||||
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent] });
|
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent, GatewayIntentBits.VoiceStateUpdate] });
|
||||||
|
|
||||||
client.commands = new Collection();
|
client.commands = new Collection();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user