From 7e13deda752d65047baa782ccd6fb31d37ffb83d Mon Sep 17 00:00:00 2001 From: Nico Jensen Date: Tue, 13 Dec 2022 10:03:07 +0100 Subject: [PATCH] modify GatewayIntentBits --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 84cd78c..d1225c3 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ require("dotenv").config() const fs = require("fs") 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]}); +const client = new Client({intents: [GatewayIntentBits.GUILDS, GatewayIntentBits.GUILD_VOICE_STATES, GatewayIntentBits.GUILD_MEMBERS]}); client.commands = new Collection()