From dc9c16f33a746355cef5fee46e8196221a704f12 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 17 Oct 2026 14:08:08 +0200 Subject: [PATCH] Fix activity parties (oops) --- src/util/interfaces/Activity.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/util/interfaces/Activity.ts b/src/util/interfaces/Activity.ts index 44426a51e..59541351f 100644 --- a/src/util/interfaces/Activity.ts +++ b/src/util/interfaces/Activity.ts @@ -36,11 +36,7 @@ export interface Activity { id?: string; animated: boolean; } | null; - party?: { - id?: string; - size?: number[]; // used to show the party's current and maximum size // TODO: array length 2 - privacy?: ActivityPartyPrivacy; - }; + party?: ActivityParty; assets?: { large_image?: string; // the id for a large asset of the activity, usually a snowflake large_text?: string; // text displayed when hovering over the large image of the activity @@ -89,10 +85,12 @@ export enum ActivityStatusDisplayType { DETAILS = 2, } -export interface ActivityPartyPrivacy { +export interface ActivityParty { id: string; privacy: ActivityPartyPrivacyLevel; // unsure if nullable - size: [number, number]; // current/max + // @minLength 2 + // @maxLength 2 + size: number[]; // current/max } export enum ActivityPartyPrivacyLevel {