From ab2930ce3439d8e6ef91228250770c8823e3c0b8 Mon Sep 17 00:00:00 2001 From: Fleny Date: Wed, 7 Aug 2024 08:21:49 +0200 Subject: [PATCH] Add attachments to CreateMessageOptions (#3830) --- packages/types/src/discordeno.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index 2a63a090e..65cae5793 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -41,6 +41,7 @@ import type { MessageFlags, OverwriteTypes, PermissionStrings, + PickPartial, ScheduledEventEntityType, ScheduledEventPrivacyLevel, ScheduledEventStatus, @@ -80,6 +81,7 @@ export interface CreateMessageOptions { /** When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */ failIfNotExists: boolean } + attachments?: (Pick, 'id'> & Omit>, 'id'>)[] /** The contents of the files being sent */ files?: FileContent[] /** The components you would like to have sent in this message */ @@ -1178,7 +1180,7 @@ export interface EditMessage { /** Allowed mentions for the message */ allowedMentions?: AllowedMentions /** When specified (adding new attachments), attachments which are not provided in this list will be removed. */ - attachments?: Camelize[] + attachments?: (Pick, 'id'> & Omit>, 'id'>)[] /** The components you would like to have sent in this message */ components?: MessageComponents }