#How can I detect when a resource has finished playing?

6 messages · Page 1 of 1 (latest)

split bear
#

How can I detect when a resource has finished playing?

DIscord.js v14 Latest, Discord,js/voice latest

plush apex
#

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

north doveBOT
scenic elm
#

stateChange event to Idle

sharp thistle
#

for anyone used search to get here:

      player.play(resource);
      player.on('stateChange', (oldState, newState) => {
        if (newState.status === 'idle') {
          console.log('Finished playing!');
        }
      });