intent fix
This commit is contained in:
11
main.js
11
main.js
@@ -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",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user