discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
327 stars 110 forks source link

Audioplayer.unpause does not work in node 14.17.1 #146

Closed cjh980402 closed 3 years ago

cjh980402 commented 3 years ago
queue.audioPlayer.pause(); // queue.audioPlayer is instance of AudioPlayer
// wait some seconds...
queue.audioPlayer.unpause();

Further details:

amishshah commented 3 years ago

Can you collect some debug information?

On state transitions, can you collect the old and new status codes of the audio player?

player.on('stateChange', console.log);
cjh980402 commented 3 years ago

Thank you for your reply, but I don't know why, but yesterday it didn't work, but it's working well after I restarted the server today and tested it again. I'll close the issue.