intent fix

This commit is contained in:
Stanislaw
2022-08-30 22:48:05 +02:00
parent 43a56b28dc
commit 430d00b5c8

11
main.js
View File

@@ -1,12 +1,13 @@
const { Player } = require("discord-player"); const { Player } = require("discord-player");
const { Client, Intents } = require("discord.js"); const { Client, GatewayIntentBits } = require("discord.js");
global.client = new Client({ global.client = new Client({
intents: [ intents: [
Intents.FLAGS.GUILDS, GatewayIntentBits.Guilds,
Intents.FLAGS.GUILD_MEMBERS, GatewayIntentBits.GuildMessages,
Intents.FLAGS.GUILD_MESSAGES, GatewayIntentBits.MessageContent,
Intents.FLAGS.GUILD_VOICE_STATES, GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildVoiceStates,
], ],
disableMentions: "everyone", disableMentions: "everyone",
}); });