diff --git a/src/managers/GuildForumThreadManager.js b/src/managers/GuildForumThreadManager.js index ec26179..66c5312 100644 --- a/src/managers/GuildForumThreadManager.js +++ b/src/managers/GuildForumThreadManager.js @@ -20,7 +20,7 @@ class GuildForumThreadManager extends ThreadManager { * @typedef {BaseMessageOptions} GuildForumThreadMessageCreateOptions * @property {StickerResolvable} [stickers] The stickers to send with the message * @property {BitFieldResolvable} [flags] The flags to send with the message. - * Only `SUPPRESS_EMBEDS` and `SUPPRESS_NOTIFICATIONS` can be set. + * Only `SUPPRESS_EMBEDS`, `SUPPRESS_NOTIFICATIONS` and `IS_VOICE_MESSAGE` can be set. */ /** @@ -82,6 +82,9 @@ class GuildForumThreadManager extends ThreadManager { id: attachment.id, filename: files[attachment.id].name, uploaded_filename: attachment.upload_filename, + description: files[attachment.id].description, + duration_secs: files[attachment.id].duration_secs, + waveform: files[attachment.id].waveform, }; }); const attachmentsData = await Promise.all(requestPromises); diff --git a/src/managers/MessageManager.js b/src/managers/MessageManager.js index 36d0205..20df657 100644 --- a/src/managers/MessageManager.js +++ b/src/managers/MessageManager.js @@ -143,6 +143,9 @@ class MessageManager extends CachedManager { id: attachment.id, filename: files[attachment.id].name, uploaded_filename: attachment.upload_filename, + description: files[attachment.id].description, + duration_secs: files[attachment.id].duration_secs, + waveform: files[attachment.id].waveform, }; }); const attachmentsData = await Promise.all(requestPromises); diff --git a/src/structures/MessagePayload.js b/src/structures/MessagePayload.js index cd27478..cc487b0 100644 --- a/src/structures/MessagePayload.js +++ b/src/structures/MessagePayload.js @@ -318,7 +318,14 @@ class MessagePayload { } const resource = await DataResolver.resolveFile(attachment); - return { attachment, name, file: resource }; + return { + attachment, + name, + file: resource, + description: fileLike.description, + duration_secs: fileLike.duration, + waveform: fileLike.waveform, + }; } /** diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index b2695ad..398f389 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -93,7 +93,7 @@ class TextBasedChannel { * @property {ReplyOptions} [reply] The options for replying to a message * @property {StickerResolvable[]} [stickers=[]] Stickers to send in the message * @property {MessageFlags} [flags] Which flags to set for the message. - * Only `SUPPRESS_EMBEDS` and `SUPPRESS_NOTIFICATIONS` can be set. + * Only `SUPPRESS_EMBEDS`, `SUPPRESS_NOTIFICATIONS` and `IS_VOICE_MESSAGE` can be set. */ /** @@ -187,6 +187,9 @@ class TextBasedChannel { id: attachment.id, filename: files[attachment.id].name, uploaded_filename: attachment.upload_filename, + description: files[attachment.id].description, + duration_secs: files[attachment.id].duration_secs, + waveform: files[attachment.id].waveform, }; }); const attachmentsData = await Promise.all(requestPromises);