diff --git a/assets/openapi.json b/assets/openapi.json index b895e6a17..fd2b7c0d0 100644 Binary files a/assets/openapi.json and b/assets/openapi.json differ diff --git a/assets/schemas.json b/assets/schemas.json index 5007befbd..158fea5ed 100644 Binary files a/assets/schemas.json and b/assets/schemas.json differ diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 0c58ff837..4dc4fb83c 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -690,7 +690,7 @@ interface MessageOptions extends MessageCreateSchema { author_id?: string; webhook_id?: string; application_id?: string; - embeds?: Embed[]; + embeds?: Embed[] | null; reactions?: Reaction[]; channel_id?: string; attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment | Attachment)[]; // why are we masking this? diff --git a/src/schemas/uncategorised/MessageCreateSchema.ts b/src/schemas/uncategorised/MessageCreateSchema.ts index 7c0d0728b..a1d43d1b3 100644 --- a/src/schemas/uncategorised/MessageCreateSchema.ts +++ b/src/schemas/uncategorised/MessageCreateSchema.ts @@ -39,8 +39,8 @@ export interface MessageCreateSchema { channel_id?: string; tts?: boolean; flags?: number; - embeds?: Embed[]; - embed?: Embed; + embeds?: Embed[] | null; + embed?: Embed | null; // TODO: ^ embed is deprecated in favor of embeds (https://discord.com/developers/docs/resources/channel#message-object) allowed_mentions?: { parse?: string[];