#error on powershell

22 messages · Page 1 of 1 (latest)

obtuse isle
#

sorry I have a problem with my bot, as soon as I start music. it shows me an error on powershell!!
[Error emitted from the queue Invalid regular expression: missing /
Error emitted from the connection [PlayerError] Cannot play a resource that has already ended]
its working before the last ytdl update...

gilded elkBOT
#

• 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.

slate eagle
#

We aren’t ytdl support.

obtuse isle
#

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

slate eagle
#

Doesn’t change what I said. Not djs. Go to their support instead

obtuse isle
#

this is my discord bot not working

wet minnow
#

your bot not working because of an external package crashing the bot, go to their support instead

obtuse isle
#

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'

gilded elkBOT
#

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

obtuse isle
#

Qjuh thanx this problem is to reflect, but but it still doesn't work

gilded elkBOT
#

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?

obtuse isle
#

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);

slate eagle
#

Only Sharing that code and the console output of what looks like normal bot startup makes me say: good, no help needed

obtuse isle
#

OK but when I type the command play nothing happens

slate eagle
#

#discord-dev-news message

obtuse isle
#

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'

obtuse isle
slate eagle
#

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