diff --git a/packages/discord.js/src/structures/AttachmentBuilder.js b/packages/discord.js/src/structures/AttachmentBuilder.js index f904cb84b34e..e2e7cf5179cd 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 = {}) { /** @@ -108,3 +108,9 @@ module.exports = AttachmentBuilder; * @external APIAttachment * @see {@link https://discord.com/developers/docs/resources/channel#attachment-object} */ + +/** + * @typedef {Object} AttachmentData + * @property {string} [name] The name of the attachment + * @property {string} [description] The description of the attachment + */