-
Notifications
You must be signed in to change notification settings - Fork 0
/
Events.js
38 lines (38 loc) · 1.67 KB
/
Events.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Events for player.
* @typedef {Object} MusicPlayerEvents
* @property {string} songStart - Event triggered when a song starts playing.
* @property {string} songSkip - Event triggered when a song is skipped.
* @property {string} songEnd - Event triggered when a song ends.
* @property {string} songLooped - Event triggered when a song is looped.
* @property {string} queueAdd - Event triggered when a song is added to the queue.
* @property {string} queueEnd - Event triggered when the queue ends.
* @property {string} queueRemove - Event triggered when a song is removed from the queue.
* @property {string} queueClear - Event triggered when the queue is cleared.
* @property {string} loopToggled - Event triggered when loop mode is toggled.
* @property {string} volumeChange - Event triggered when the volume is changed.
* @property {string} searchResult - Event triggered when a search result is obtained.
* @property {string} paused - Event triggered when the player is paused.
* @property {string} resumed - Event triggered when the player is resumed.
* @property {string} leave - Event triggered when the player leaves.
* @property {string} destroyed - Event triggered when the player is destroyed.
* @property {string} error - Event triggered when an error occurs.
*/
module.exports = {
songStart: "songStart",
songSkip: "songSkip",
songEnd: "songEnd",
songLooped: "songLooped",
queueAdd: "queueAdd",
queueEnd: "queueEnd",
queueRemove: "queueRemove",
queueClear: "queueClear",
loopToggled: "loopToggled",
volumeChange: "volumeChange",
searchResult: "searchResult",
paused: "paused",
unpaused: "unpaused",
leave: "leave",
destroyed: "destroyed",
error: "error"
}