change intent to GatewayIntentBits
This commit is contained in:
parent
b4d60817a6
commit
b0c9b9fdb2
@ -1,8 +1,8 @@
|
|||||||
require("dotenv").config()
|
require("dotenv").config()
|
||||||
const fs = require("fs")
|
const fs = require("fs")
|
||||||
|
|
||||||
const {Client, Collection, Intents} = require('discord.js');
|
const {Client, Collection, GatewayIntentBits} = 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 = new Client({intents: [GatewayIntentBits.FLAGS.GUILDS, GatewayIntentBits.FLAGS.GUILD_VOICE_STATES, GatewayIntentBits.FLAGS.GUILDS, GatewayIntentBits.FLAGS.GUILD_MEMBERS]});
|
||||||
|
|
||||||
client.commands = new Collection()
|
client.commands = new Collection()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user