mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
added: Vote-to-skip
This commit is contained in:
1 parent
e315cfbc1d
commit
cc0b438ef6
13 files changed
+206
-40
No files matched your search
@@ -178,6 +178,7 @@ const PlaybackMixin = {
|
||||
this.announceSong(songData);
|
||||
if (songData.type === "radio") this._radioAnnounced = true;
|
||||
}
|
||||
this._skipVotes.clear();
|
||||
this.emit("startplay", songData);
|
||||
|
||||
try {
|
||||
|
||||
@@ -54,6 +54,9 @@ class Player extends EventEmitter {
|
||||
/** @private @type {string|null} The home channel of a 24/7 spawn. */
|
||||
_home247Channel = null;
|
||||
|
||||
/** @private @type {Set<string>} User IDs who have voted to skip the current track. Reset whenever a new track starts. */
|
||||
_skipVotes = new Set();
|
||||
|
||||
/** @type {Queue} */
|
||||
queue = null;
|
||||
client = null;
|
||||
|
||||
Reference in new issue
Block a user