From 13e9ddcfc9b77297326d9059630815ecd13772e7 Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Sat, 9 May 2026 17:01:05 +0300 Subject: [PATCH] Fixed --- commands/debug.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/debug.mjs b/commands/debug.mjs index c252762..fda726a 100644 --- a/commands/debug.mjs +++ b/commands/debug.mjs @@ -20,6 +20,8 @@ export async function run(msg, data) { case "voice": { const servers = [...this.players.playerMap.entries()].map(([cid, s]) => { const channel = this.client.channels.get(cid); + const guildId = s._guildId ?? channel?.guildId ?? channel?.guild_id; + const guild = guildId ? this.client.guilds.get(String(guildId).replace(/\D/g, "")) : null; const conn = s.connection; const room = conn?.room; const roomState = room?.state ?? "no-room"; @@ -28,8 +30,8 @@ export async function run(msg, data) { name: channel?.name ?? "unknown", id: channel?.id ?? cid, channelId: s._channelId ?? cid, - guildId: s._guildId ?? "unknown", - guildname: channel?.guild?.name ?? "unknown", + guildId: guildId ?? "unknown", + guildname: guild?.name ?? channel?.guild?.name ?? "unknown", conn: conn ? "yes" : "null", roomState, mediaPlayer: hasMediaPlayer ? "alive" : (s._mediaPlayer?.destroyed ? "destroyed" : "none"),