const { Player } = require("discord-player"); const { Client, GatewayIntentBits } = require("discord.js"); global.client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildVoiceStates, ], disableMentions: "everyone", }); client.config = require("./config"); global.player = new Player(client, client.config.opt.discordPlayer); require("./src/loader"); require("./src/events"); client.login(process.env.DISCORD_TOKEN);