No sound ( no green circle)
Hello, i followed the official discord js v14 voice guide and my bot is not playing any sound. No green circle too. Here's the code:
Here's the generateDependencyReport:
71 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button![email protected] /home/container
└── [email protected]
here's what i see in the log:
@Xalri i'm facing the same issue
someone's here:hello: . I didn't work on it after my message since i tried everything i had in mind. If you have any idea, maybe we can help each other. Can you send me your package list from package.json pls?
Yea i fixed it
omg
tell me
Enable the intent
GuildVoiceState
i already added this intents...
GuildVoiceIntents enable?
in dev portal?
No
In your code
then yes, i already added it
oh wait
not
this one
i have guildvoicestate
not GuildVoiceIntent
If it's still not work idk then cuz mine is same problem as urs
Lol
GuildVoiceIntent don't exist
Im talking about this
yes
then i have it already
Yea
i guess i'll have to wait
Idk like I had exactly the same problem as you and it worked as soon as I enabled my intent.
Btw what are you trying to do?
Music bot?
it really looks like that, because i followed the guide 3 times and nothing works, all logs says that everything is "ready" or "playing" but i have it. Can you show me how you add intents pls
my friend's doing music so i want to add it to my server
Same as mine problem actually i was trying to make
Tts command for people who don't like opening the mic on vc
So they can use bot.
good idea
And it's says bot is speaking but it's not so yea as soon i enabled the intent its work
Yea wait
@Xalri i mean i know it's not the best idea to enable intents but yes it's fine tho
wdym?
here's mine:
I mean we can use other ways
To do that
Just to make our code clean
tell me more
Like this
So we dont have to add intents manually everytime
what does this do ?
But it's typescript code you can use chatgpt to convert this
Into js
Enabling the intents
like all intents?
Yes
k, let me try
But convert this into js
It's ts
ik
Are you
Begginer, intermidiate or advanced
?
begginer in djs, begginer-intermidiate in js, intermediate in programmation
Nice
my language is python but dpy is horrible
Can you come to dm
so i'm trying js
Dpy
discord.py
Pycord better
dpy deperecated
don't know pycord
seems cool
Bruh
but i'm using djs now, don't make me regret
You dont know pycord
no
:kek:
It's like djs for discord bots
Ngl i hate python
I'm just saying
what are partials? like in the code you gave me, you added partial into the client
you can dm me
Partials in
discord.js
refer to a feature that enables Discord bots to receive partial information about certain resources. This includes essential data about entities (like users or channels) without fetching their complete details immediately. By using partials, bots can optimize performance by reducing the number of API calls and processing only necessary information until more details are specifically requested. This feature is particularly useful for managing large volumes of data efficiently and responding promptly to Discord events and interactions.cool
We highly recommend only specifying the intents you actually need.
- Note, that
98303
, 32767
or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
- The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.Hello, I got the same issue and enable the GuildVoiceState intent but it doesn't work ...
Adding the intent didn't fix my problem. I'm still searching for a solution
Okay... I read somewhere that the discordplayer library was down and that the code itself was not at fault
Is this false information?
If you find something to replace it, feel free to share it here
No problem I will
Ok I solve the problem my friend
Tell me
It's because of the TOS violation right, you need to apply a filter to your extractors:
client.player = new Player(client, {
ytdlOptions: {
filter: "audioonly",
quality: "highestaudio",
highWaterMark: 1 << 25
}
});
client.player.extractors.loadDefault((ext) => ext !== 'YouTubeExtractor');
But now the new problem is that the music stops after a few seconds ....I'm not
Ah okay okay I didn't know I'm just trying to find a solution
What are the other alternatives then? I am a beginner
Ah, so in fact it's impossible to make a music bot
Spotify is not a TOS violation right?
Oh
Hm
But I'm using my MP4 file so pls continue to help me😭
So it's impossible to have your own homemade music bot
It is, but you can't publicly ask for help and talk about it lmao
:socialmemeblown:
Ok well I give up
I don't plan to start a band so I can post music
i mean somehow i fixed it
but idk how
xd
oh i think i enabled the voice intent