mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
shadows
This commit is contained in:
1 parent
687908ae0c
commit
034d64e830
1 file changed
+18
@@ -1051,6 +1051,24 @@ export class Remix {
|
|||||||
};
|
};
|
||||||
this.dashboard.updateUser(details, userObj);
|
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 (_) {}
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user