- What are your intents?
GuildVoiceStatesis required to receive voice data! - Show what dependencies you are using --
generateDependencyReport()is exported from@discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples.
- 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!
#turns off automatically when the song is almost finished, the song is in flac format, I noticed that
20 messages · Page 1 of 1 (latest)
My voice channel
I tried checking the file, but it still plays it all?
I'm not sure if it sounds silent, that just makes me feel
Tried removing highWaterMark and it's still the same
the stream ending isn't necessarily when it will finish playing
you'll want to listen for the AudioPlayer entering the Idle state instead
highWaterMark tried many values
But it so slow
Right?
not entirely sure what you mean
the player enters the Idle state when it's done playing
There is no silence at the end, I just leave the beginning with sound
immediately, or am I using await. for set channel name, there may be a delay there
Set name music to channel name
that definitely sounds like the issue
channel names are not intended to be a display of any sort (including this), and therefore editing them has a heavy rate limit of 2 per 10 minutes
consider not doing that
Oh
it will wait until await is completed...
How many highmarks is enough for a 50mb wav song?
Highwatermark
this is a little out of my wheelhouse, but afaik these two don't directly correlate, and the answer may also vary depending on hardware
you may want to look up what highWaterMark actually is in relation to streams in general (since this option is just passed along to node's stream)
Library: Audio Player - Life cycle