magmastream 2.9.3-dev.26 → 2.9.3-dev.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -539,14 +539,12 @@ class Manager extends events_1.EventEmitter {
|
|
|
539
539
|
this.restorePlayerData(player, state);
|
|
540
540
|
this.restoreFilters(player, state);
|
|
541
541
|
player.connect();
|
|
542
|
-
if (lavaPlayer.track) {
|
|
542
|
+
if (lavaPlayer.track && state.clusterId !== player.clusterId) {
|
|
543
543
|
const currentTrack = state.queue.current;
|
|
544
544
|
await player.play(Utils_1.TrackUtils.build(lavaPlayer.track, currentTrack.requester, currentTrack.isAutoplay), { startTime: lavaPlayer.state.position ?? 0 });
|
|
545
|
-
}
|
|
546
|
-
await player.pause(state.paused);
|
|
547
|
-
if (state.clusterId !== player.clusterId) {
|
|
548
545
|
await node.rest.delete(`/v4/sessions/${state.node.sessionId}/players/${state.guildId}`);
|
|
549
546
|
}
|
|
547
|
+
await player.pause(state.paused);
|
|
550
548
|
await cleanup();
|
|
551
549
|
this.emit(Enums_1.ManagerEventTypes.PlayerRestored, player, node);
|
|
552
550
|
await this.sleep(1000);
|
package/dist/structures/Utils.js
CHANGED
|
@@ -685,8 +685,6 @@ class PlayerUtils {
|
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
const serializableData = player.getSerializableData();
|
|
688
|
-
console.log("[SERIALIZE DEBUG] raw data:", JSON.stringify(Object.keys(serializableData)));
|
|
689
|
-
console.log("[SERIALIZE DEBUG] nowPlayingMessage:", serializableData.nowPlayingMessage);
|
|
690
688
|
const nowPlayingMessage = serializableData.nowPlayingMessage;
|
|
691
689
|
delete serializableData.nowPlayingMessage;
|
|
692
690
|
const snapshot = {
|