fix(music): resolve ghost players on channel/guild delete and fix clear command NaN range

This commit is contained in:
NoLogicAlan committed 2026-10-24 04:00:25 +03:00
1 parent a780ec22c8
commit 618ecb1a0b
9 files changed
+94 -13

No files matched your search

+2
View File
@@ -720,6 +720,7 @@ class Player extends EventEmitter {
this._onLavalinkPlayerDisconnect = null;
}
}
this.queue?.reset();
this.leaving = true;
this._stopInactivityTimer();
this._autoplay = false;
@@ -747,6 +748,7 @@ class Player extends EventEmitter {
vm.leaveChannel(this._channelId);
} catch(e) { /* best effort */ }
}
this.removeAllListeners();
} catch (e) {
logger.error("[Player] destroy error:", e.message);
}