#error on powershell
22 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
We aren’t ytdl support.
yes but that I launch music from youtube or spotify or other, bot master does not work anymore
I had set it up with zerio
Doesn’t change what I said. Not djs. Go to their support instead
this is my discord bot not working
your bot not working because of an external package crashing the bot, go to their support instead
E:\Music-bot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:245
throw new Error(WSCodes[error.code]);
^
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (E:\Music-bot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:245:15)
at async Client.login (E:\Music-bot-master\node_modules\discord.js\src\client\Client.js:254:7) {
[Symbol(code)]: 'DISALLOWED_INTENTS'
Tag suggestion for @obtuse isle:
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
If you are using the GuildMembers, GuildPresences, or MessageContent intents, you need to enable them in the developer portal:
• Developer Portal > Your app > Bot > Privileged Gateway Intents
Qjuh thanx this problem is to reflect, but but it still doesn't work
Tag suggestion for @obtuse isle:
To help you we need more information:
• What are you trying to do?
• What is your code?
• What errors and debug logs do you have?
PS C:\WINDOWS\system32> cd E:\Music-bot-master
PS E:\Music-bot-master> node main.js
Loading events...
-> Loaded event interactionCreate
-> Loaded event messageCreate
-> Loaded event ready
Loading commands...
-> Loaded command help
-> Loaded command ping
-> Loaded command back
-> Loaded command clear
-> Loaded command filter
-> Loaded command loop
-> Loaded command nowplaying
-> Loaded command pause
-> Loaded command play
-> Loaded command progress
-> Loaded command queue
-> Loaded command resume
-> Loaded command save
-> Loaded command search
-> Loaded command seek
-> Loaded command shuffle
-> Loaded command skip
-> Loaded command stop
-> Loaded command volume
Connecté sur le client MusicByFonzzy
const { Player } = require('discord-player');
const { Client, Intents } = require('discord.js');
global.client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_VOICE_STATES
],
disableMentions: 'everyone',
});
client.config = require('./config');
global.player = new Player(client, client.config.opt.discordPlayer);
require('./src/loader');
require('./src/events');
client.login(client.config.app.token);
Only Sharing that code and the console output of what looks like normal bot startup makes me say: good, no help needed
OK but when I type the command play nothing happens
#discord-dev-news message
error on discord.js no?
D:\Music-bot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:250
throw new Error(unrecoverableErrorCodeMap[error.code]);
^
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (D:\Music-bot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:250:15)
at async Client.login (D:\Music-bot-master\node_modules\discord.js\src\client\Client.js:232:7) {
code: 'DisallowedIntents'
We‘ve been there already
You have GUILD_MEMBERS intent in your constructor, but you didn’t activate it. You activated Presences instead but don’t have it in constructor. Read what you do and check yourself