Skip to content

Commit

Permalink
docs(AttachmentBuilder): fix #8407 (#8421)
Browse files Browse the repository at this point in the history
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
  • Loading branch information
RedGuy12 and Jiralite committed Aug 8, 2022
1 parent e72b986 commit 5b053cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/discord.js/src/structures/AttachmentBuilder.js
Expand Up @@ -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 = {}) {
/**
Expand Down Expand Up @@ -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
*/

1 comment on commit 5b053cf

@vercel
Copy link

@vercel vercel bot commented on 5b053cf Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.