From 3f65ff89b7eb73829e025399ee4f4fead1d1503d Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 17 Oct 2026 11:58:54 +0200 Subject: [PATCH] More activity fixies --- src/util/interfaces/Activity.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/util/interfaces/Activity.ts b/src/util/interfaces/Activity.ts index ff12500cf..f8b3ab53f 100644 --- a/src/util/interfaces/Activity.ts +++ b/src/util/interfaces/Activity.ts @@ -23,12 +23,14 @@ export interface Activity { created_at?: number; // unix timestamp of when the activity was added to the user's session timestamps?: { // unix timestamps for start and/or end of the game - start: number; - end: number; + start?: number; + end?: number; }; application_id?: string; // application id for the game details?: string; + details_url?: string; state?: string; + status_display_type?: ActivityStatusDisplayType | null; emoji?: { name: string; id?: string; @@ -77,3 +79,9 @@ export enum ActivityType { CUSTOM = 4, COMPETING = 5, } + +export enum ActivityStatusDisplayType { + NAME = 0, + STATE = 1, + DETAILS = 2, +}