From b0c9b9fdb2986df5ca469afb37e903181505cedc Mon Sep 17 00:00:00 2001 From: Nico Jensen Date: Tue, 13 Dec 2022 09:59:56 +0100 Subject: [PATCH] change intent to GatewayIntentBits --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()