refactor(example): use intents provided by discord.js

This commit is contained in:
DevAndromeda 2021-08-09 22:57:36 +05:45
parent e7c377ed0c
commit 5f8ad43b55
No known key found for this signature in database
GPG key ID: FA40E3EC5CB6DCD6

View file

@ -1,9 +1,9 @@
require("dotenv").config();
const { Client, GuildMember } = require("discord.js");
const { Client, GuildMember, Intents } = require("discord.js");
const config = require("./config");
const { Player, QueryType, QueueRepeatMode } = require("discord-player");
const client = new Client({
intents: ["GUILD_VOICE_STATES", "GUILD_MESSAGES", "GUILDS"]
intents: [Intents.FLAGS.GUILD_VOICE_STATES, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILDS]
});
client.on("ready", () => {