From 5f8ad43b55d06062408542d963eb0a0bd75deb20 Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Mon, 9 Aug 2021 22:57:36 +0545 Subject: [PATCH] refactor(example): use intents provided by discord.js --- example/music-bot/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/music-bot/index.js b/example/music-bot/index.js index 30d6d74..99914ba 100644 --- a/example/music-bot/index.js +++ b/example/music-bot/index.js @@ -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", () => {