From 0282fbec02179a56f4cd4305d5870088d5c4c3a3 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 10 Aug 2024 16:27:31 -0500 Subject: [PATCH] update json tpyes --- webpage/jsontypes.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webpage/jsontypes.ts b/webpage/jsontypes.ts index e3f3629..957c6c1 100644 --- a/webpage/jsontypes.ts +++ b/webpage/jsontypes.ts @@ -142,11 +142,11 @@ type userjson={ type memberjson= { index?:number, id: string, - user: userjson, + user: userjson|null, guild_id: string, guild: { id: string - }, + }|null, nick: string, roles: string[], joined_at: string, @@ -154,8 +154,9 @@ type memberjson= { deaf: boolean, mute: boolean, pending: boolean, - last_message_id: boolean + last_message_id?: boolean//What??? } + type guildjson={ application_command_counts: {[key:string]:number}, channels: channeljson[],