mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-31 22:25:43 +00:00
Fix schemas
This commit is contained in:
@@ -24,6 +24,13 @@ export type MessageCreateAttachment = {
|
||||
filename: string;
|
||||
};
|
||||
|
||||
export type MessageCreateCloudAttachment = {
|
||||
id?: string;
|
||||
filename: string;
|
||||
uploaded_filename: string;
|
||||
original_content_type?: string;
|
||||
}
|
||||
|
||||
export interface MessageCreateSchema {
|
||||
type?: number;
|
||||
content?: string;
|
||||
@@ -53,7 +60,7 @@ export interface MessageCreateSchema {
|
||||
TODO: we should create an interface for attachments
|
||||
TODO: OpenWAAO<-->attachment-style metadata conversion
|
||||
**/
|
||||
attachments?: (MessageCreateAttachment | UploadAttachmentResponse)[];
|
||||
attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment)[];
|
||||
sticker_ids?: string[];
|
||||
components?: ActionRowComponent[];
|
||||
// TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled
|
||||
|
||||
Reference in New Issue
Block a user