mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
Fixed
This commit is contained in:
1 parent
c8a6469025
commit
13e9ddcfc9
1 file changed
+4
-2
+4
-2
@@ -20,6 +20,8 @@ export async function run(msg, data) {
|
|||||||
case "voice": {
|
case "voice": {
|
||||||
const servers = [...this.players.playerMap.entries()].map(([cid, s]) => {
|
const servers = [...this.players.playerMap.entries()].map(([cid, s]) => {
|
||||||
const channel = this.client.channels.get(cid);
|
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 conn = s.connection;
|
||||||
const room = conn?.room;
|
const room = conn?.room;
|
||||||
const roomState = room?.state ?? "no-room";
|
const roomState = room?.state ?? "no-room";
|
||||||
@@ -28,8 +30,8 @@ export async function run(msg, data) {
|
|||||||
name: channel?.name ?? "unknown",
|
name: channel?.name ?? "unknown",
|
||||||
id: channel?.id ?? cid,
|
id: channel?.id ?? cid,
|
||||||
channelId: s._channelId ?? cid,
|
channelId: s._channelId ?? cid,
|
||||||
guildId: s._guildId ?? "unknown",
|
guildId: guildId ?? "unknown",
|
||||||
guildname: channel?.guild?.name ?? "unknown",
|
guildname: guild?.name ?? channel?.guild?.name ?? "unknown",
|
||||||
conn: conn ? "yes" : "null",
|
conn: conn ? "yes" : "null",
|
||||||
roomState,
|
roomState,
|
||||||
mediaPlayer: hasMediaPlayer ? "alive" : (s._mediaPlayer?.destroyed ? "destroyed" : "none"),
|
mediaPlayer: hasMediaPlayer ? "alive" : (s._mediaPlayer?.destroyed ? "destroyed" : "none"),
|
||||||
|
|||||||
Reference in new issue
Block a user