rollllbackkk

This commit is contained in:
NoLogicAlan committed 2026-05-14 17:18:16 +03:00
1 parent 18d46e6df0
commit 3c14f04756
11 files changed
+627 -745

No files matched your search

+2 -1
View File
@@ -28,7 +28,8 @@ export async function run(msg, data) {
if (!targetChannel) return msg.reply(embed(this.t(msg, "responses.forceleave.channelNotFound")));
if (cleanId(msg.message.guildId) !== cleanId(targetChannel.guildId))
return msg.reply(embed(this.t(msg, "responses.forceleave.wrongServer")));
const p = this.players.findPlayerEntryByChannelId(cid)?.player ?? null;
const p = this.players.playerMap.get(cid)
?? [...this.players.playerMap.values()].find((player) => cleanId(player?._channelId) === cid);
if (!p) return msg.reply(embed(this.t(msg, "responses.forceleave.playerNotFound")));
if (!p.connection) return msg.reply(embed(this.t(msg, "responses.forceleave.playerNotInit")));
await this.players.leave(msg, cid);