From 8683562704dcde1fa3d58dc6a1e774c267228f84 Mon Sep 17 00:00:00 2001 From: RedGuy12 Date: Wed, 3 Aug 2022 16:37:44 -0500 Subject: [PATCH 1/4] docs(AttachmentBuilder): fix #8407 --- packages/discord.js/src/structures/AttachmentBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/structures/AttachmentBuilder.js b/packages/discord.js/src/structures/AttachmentBuilder.js index f904cb84b34e..231b0dbd5c3f 100644 --- a/packages/discord.js/src/structures/AttachmentBuilder.js +++ b/packages/discord.js/src/structures/AttachmentBuilder.js @@ -8,7 +8,7 @@ const { basename, flatten } = require('../util/Util'); class AttachmentBuilder { /** * @param {BufferResolvable|Stream} attachment The file - * @param {APIAttachment} [data] Extra data + * @param {AttachmentData} [data] Extra data */ constructor(attachment, data = {}) { /** From 91a34990d72600acd16e701ccc5bb60347946672 Mon Sep 17 00:00:00 2001 From: RedGuy12 Date: Wed, 3 Aug 2022 17:59:52 -0500 Subject: [PATCH 2/4] docs(AttachmentBuilder): add missing type --- packages/discord.js/src/structures/AttachmentBuilder.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/discord.js/src/structures/AttachmentBuilder.js b/packages/discord.js/src/structures/AttachmentBuilder.js index 231b0dbd5c3f..4507b81f6c36 100644 --- a/packages/discord.js/src/structures/AttachmentBuilder.js +++ b/packages/discord.js/src/structures/AttachmentBuilder.js @@ -108,3 +108,9 @@ module.exports = AttachmentBuilder; * @external APIAttachment * @see {@link https://discord.com/developers/docs/resources/channel#attachment-object} */ + +/** + * @typedef {Object} AttachmentData + * @property {name} [string] The name of the attachment + * @property {description} [string] The description of the component + */ From 3f6ab8720adaf327fdfa24e0d07acf0e67f23dd3 Mon Sep 17 00:00:00 2001 From: RedGuy12 Date: Wed, 3 Aug 2022 18:00:49 -0500 Subject: [PATCH 3/4] docs(AttachmentBuilder): add missing type --- packages/discord.js/src/structures/AttachmentBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/structures/AttachmentBuilder.js b/packages/discord.js/src/structures/AttachmentBuilder.js index 4507b81f6c36..ee7f2105294c 100644 --- a/packages/discord.js/src/structures/AttachmentBuilder.js +++ b/packages/discord.js/src/structures/AttachmentBuilder.js @@ -112,5 +112,5 @@ module.exports = AttachmentBuilder; /** * @typedef {Object} AttachmentData * @property {name} [string] The name of the attachment - * @property {description} [string] The description of the component + * @property {description} [string] The description of the attachment */ From e803c13e96252a6ea7be4a0b982307fdebec9b9a Mon Sep 17 00:00:00 2001 From: RedGuy12 Date: Wed, 3 Aug 2022 20:26:45 -0500 Subject: [PATCH 4/4] docs(AttachmentBuilder): fix order Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --- packages/discord.js/src/structures/AttachmentBuilder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/AttachmentBuilder.js b/packages/discord.js/src/structures/AttachmentBuilder.js index ee7f2105294c..e2e7cf5179cd 100644 --- a/packages/discord.js/src/structures/AttachmentBuilder.js +++ b/packages/discord.js/src/structures/AttachmentBuilder.js @@ -111,6 +111,6 @@ module.exports = AttachmentBuilder; /** * @typedef {Object} AttachmentData - * @property {name} [string] The name of the attachment - * @property {description} [string] The description of the attachment + * @property {string} [name] The name of the attachment + * @property {string} [description] The description of the attachment */