hotfix ( idk )

This commit is contained in:
NoLogicAlan committed 2026-06-16 04:24:47 +03:00
1 parent 092268281a
commit 862f326996
4 files changed
+78 -6

No files matched your search

+6 -2
View File
@@ -1195,6 +1195,12 @@ export default class Player extends EventEmitter {
}
const channelId = this._channelId;
if (this._revoice && channelId && typeof this._revoice.markIntentionalDisconnect === "function") {
this._revoice.markIntentionalDisconnect(channelId);
}
await this.connection.leave();
if (this._revoice && channelId) {
try {
if (typeof this._revoice.deleteConnection === "function") {
@@ -1205,8 +1211,6 @@ export default class Player extends EventEmitter {
} catch(e) { logger.warn("[Player] Delete connection on leave error:", e?.message); }
}
await this.connection.leave();
this.queue.reset();
this.connection = null;
this._paused = false;