refactor(example): use intents provided by discord.js
This commit is contained in:
parent
e7c377ed0c
commit
5f8ad43b55
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
require("dotenv").config();
|
require("dotenv").config();
|
||||||
const { Client, GuildMember } = require("discord.js");
|
const { Client, GuildMember, Intents } = require("discord.js");
|
||||||
const config = require("./config");
|
const config = require("./config");
|
||||||
const { Player, QueryType, QueueRepeatMode } = require("discord-player");
|
const { Player, QueryType, QueueRepeatMode } = require("discord-player");
|
||||||
const client = new Client({
|
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", () => {
|
client.on("ready", () => {
|
||||||
|
|
Loading…
Reference in a new issue