mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-18 16:14:27 -04:00
Merge branch 'jack1142-master-patch-20783' into 'master'
Properly mark optional fields (last_message and description) See merge request revolt/api!5
This commit is contained in:
+4
-4
@@ -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
|
||||
@@ -126,7 +126,7 @@ export type ServerChannel = {
|
||||
/**
|
||||
* Channel description
|
||||
*/
|
||||
description: string
|
||||
description?: string
|
||||
|
||||
icon?: Attachment
|
||||
|
||||
@@ -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