diff --git a/src/types/discordeno/edit_webhook_message.ts b/src/types/discordeno/edit_webhook_message.ts index 97ee0af14..f0cc429f2 100644 --- a/src/types/discordeno/edit_webhook_message.ts +++ b/src/types/discordeno/edit_webhook_message.ts @@ -1,6 +1,6 @@ import { EditWebhookMessage } from "../webhooks/edit_webhook_message.ts"; export interface DiscordenoEditWebhookMessage extends EditWebhookMessage { - /** Id of the message you want to edit */ - messageId: string; + /** Id of the message you want to edit if undefined the initial response message will be edited */ + messageId?: string; } diff --git a/src/types/webhooks/edit_webhook_message.ts b/src/types/webhooks/edit_webhook_message.ts index 4076c5cb8..6317c70fe 100644 --- a/src/types/webhooks/edit_webhook_message.ts +++ b/src/types/webhooks/edit_webhook_message.ts @@ -10,7 +10,7 @@ export interface EditWebhookMessage { /** Embedded `rich` content */ embeds?: Embed[] | null; /** The contents of the file being sent/edited */ - file: FileContent | FileContent[]; + file?: FileContent | FileContent[]; /** Allowed mentions for the message */ allowedMentions?: AllowedMentions | null; /** Attached files to keep */