From 4a367f6f8fda2ab041243fa87b7e936212cfbe1a Mon Sep 17 00:00:00 2001 From: jack1142 <84-jack1142@users.noreply.gitlab.insrt.uk> Date: Thu, 19 Aug 2021 03:11:25 +0000 Subject: [PATCH 1/2] Mark ServerChannel's description as optional --- types/Channels.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/Channels.ts b/types/Channels.ts index 660e5f9..7d1dd71 100644 --- a/types/Channels.ts +++ b/types/Channels.ts @@ -126,7 +126,7 @@ export type ServerChannel = { /** * Channel description */ - description: string + description?: string icon?: Attachment From f540ed38ef6ba5bfc5b65526608990fe664f333e Mon Sep 17 00:00:00 2001 From: jack1142 <84-jack1142@users.noreply.gitlab.insrt.uk> Date: Thu, 19 Aug 2021 03:17:58 +0000 Subject: [PATCH 2/2] Mark last_message as optional as well --- types/Channels.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/Channels.ts b/types/Channels.ts index 7d1dd71..f816ee8 100644 --- a/types/Channels.ts +++ b/types/Channels.ts @@ -58,7 +58,7 @@ export type DirectMessageChannel = { */ recipients: Id[] - last_message: LastMessage + last_message?: LastMessage } export type GroupChannel = { @@ -89,7 +89,7 @@ export type GroupChannel = { */ description?: string, - last_message: LastMessage, + last_message?: LastMessage, /** * Group icon @@ -151,7 +151,7 @@ export type ServerChannel = { export type TextChannel = ServerChannel & { channel_type: 'TextChannel' - last_message: string + last_message?: string } export type VoiceChannel = ServerChannel & {