Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
UserInfo per-client presence status
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Jan 21, 2024
1 parent eec3fb3 commit 2e655f4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/commands/Info/UserInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,9 @@ export const Command: MeteoriumCommand = {
// User status and is client device parsing
let UserStatus = "Unknown";
if (ParsedUser.presence && ParsedUser.presence["status"]) {
const ClientStatus = String(
ParsedUser.presence.clientStatus?.desktop ||
ParsedUser.presence.clientStatus?.mobile ||
ParsedUser.presence.clientStatus?.web ||
"N/A",
);
const ClientStatus = `Desktop: ${ParsedUser.presence.clientStatus?.desktop || "N/A"} | Mobile: ${
ParsedUser.presence.clientStatus?.mobile || "N/A"
} | Web: ${ParsedUser.presence.clientStatus?.web || "N/A"}`;
if (ParsedUser.presence.status === "dnd") {
UserStatus = `do not disturb - ${ClientStatus}`;
} else {
Expand Down

0 comments on commit 2e655f4

Please sign in to comment.