summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-10-17 11:58:54 +0200
committerRory& <root@rory.gay>2026-10-17 11:58:54 +0200
commit3f65ff89b7eb73829e025399ee4f4fead1d1503d (patch)
tree57a6565c91f5b6ea07432545ec3087fa71dac04a
parentAllow null for custom status emoji, fix identify schema some more (diff)
downloadserver-ts-3f65ff89b7eb73829e025399ee4f4fead1d1503d.tar.xz
More activity fixies
-rw-r--r--src/util/interfaces/Activity.ts12
1 files 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, +}