diff --git a/src/index.js b/src/index.js index 57fcfe4..84cd78c 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,8 @@ require("dotenv").config() const fs = require("fs") -const {Client, Collection, Intents} = require('discord.js'); -const client = new Client({intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_VOICE_STATES, Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS]}); +const {Client, Collection, GatewayIntentBits} = require('discord.js'); +const client = new Client({intents: [GatewayIntentBits.FLAGS.GUILDS, GatewayIntentBits.FLAGS.GUILD_VOICE_STATES, GatewayIntentBits.FLAGS.GUILDS, GatewayIntentBits.FLAGS.GUILD_MEMBERS]}); client.commands = new Collection()