This commit is contained in:
NoLogicAlan committed 2026-05-04 21:03:52 +03:00
1 parent 687908ae0c
commit 034d64e830
1 file changed
+18
+18
View File
@@ -1051,6 +1051,24 @@ export class Remix {
};
this.dashboard.updateUser(details, userObj);
}
const refChannel = channelId ?? oldChannelId;
const cleanId = refChannel ? String(refChannel).replace(/\D/g, "") : null;
if (cleanId) {
const player = this.players.playerMap.get(cleanId);
if (player) {
this.dashboard.updatePlayer({
guildId: player._guildId,
channelId: player._channelId,
playing: player.playing ?? false,
paused: player.paused ?? false,
queueLength: player.queue?.length ?? 0,
});
}
}
} catch (_) {}
}