mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-18 16:14:27 -04:00
Mark last_message as optional as well
This commit is contained in:
+3
-3
@@ -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 & {
|
||||
|
||||
Reference in New Issue
Block a user