Events
Adding Events
List of Events
trackStart
→ Emitted whenever a track starts.trackEnd
→ Emitted whenever a track ends.queueStart
→ Emitted whenever a queue starts.queueEnd
→ Emitted whenever a queue ends.audioError
→ Emitted whenever a audio error occurs.trackPause
→ Emitted whenever a track pauses.trackResume
→ Emitted whenever a track resumes.
Using Events
This should be the content of your ./voice/<filename>.js
:
If you don’t want to use handlers, you can use this instead in your main file also known as index.js
: