change intent to GatewayIntentBits

This commit is contained in:
Nico Jensen 2022-12-13 09:59:56 +01:00
parent b4d60817a6
commit b0c9b9fdb2

View File

@ -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()