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