Fix message embeds not being nullable

This commit is contained in:
Rory&
2026-02-25 08:15:37 +01:00
parent 7b04349878
commit 1926e8cf34
4 changed files with 3 additions and 3 deletions
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -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?
@@ -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[];