Start implementing webhooks

This commit is contained in:
Puyodead1
2023-12-10 17:02:27 -05:00
parent 0a6f6a095d
commit 99d9bf563f
11 changed files with 5029 additions and 401 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
import { Embed } from "@spacebar/util";
type Attachment = {
export type MessageCreateAttachment = {
id: string;
filename: string;
};
@@ -52,7 +52,7 @@ export interface MessageCreateSchema {
TODO: we should create an interface for attachments
TODO: OpenWAAO<-->attachment-style metadata conversion
**/
attachments?: Attachment[];
attachments?: MessageCreateAttachment[];
sticker_ids?: string[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
components?: any[];