You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I have is a simple leave command that calls the GuildQueue.delete() method when executed, combined with leaveOnStop: true from GuildNodeCreateOptions, it makes the bot leave the voice channel. However when the leave command is executed while a song from the queue is being loaded, a Cannot read properties of null (reading 'createStream') error is thrown.
I need some guidance if this can somehow be fixed on my side or requires an update to this package, thanks in advance!
To Reproduce
Add two songs to the queue and start the playback
When the first song finishes playing, call the GuildQueue.delete() method. The time window that this method can be called and will result in a crash is dependent on the song loading time, in my case it seems to be around 2 seconds.
The bot will leave the channel but it will also crash
Expected behavior
The bot is disconnected from the voice channel, but it doesn't crash the application.
Screenshots
Please complete the following information:
Node Version: 20.12.1
Discord Player Version: 6.6.8
Discord.js Version: 14.15.2
The text was updated successfully, but these errors were encountered:
What I have is a simple
leave
command that calls theGuildQueue.delete()
method when executed, combined withleaveOnStop: true
fromGuildNodeCreateOptions
, it makes the bot leave the voice channel. However when theleave
command is executed while a song from the queue is being loaded, aCannot read properties of null (reading 'createStream')
error is thrown.I need some guidance if this can somehow be fixed on my side or requires an update to this package, thanks in advance!
To Reproduce
GuildQueue.delete()
method. The time window that this method can be called and will result in a crash is dependent on the song loading time, in my case it seems to be around 2 seconds.Expected behavior
The bot is disconnected from the voice channel, but it doesn't crash the application.
Screenshots
Please complete the following information:
The text was updated successfully, but these errors were encountered: