mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 11:44:07 +00:00
Fix message embeds not being nullable
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user