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] 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 & {