mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,7 @@ const { basename, flatten } = require('../util/Util');
|
|||||||
class AttachmentBuilder {
|
class AttachmentBuilder {
|
||||||
/**
|
/**
|
||||||
* @param {BufferResolvable|Stream} attachment The file
|
* @param {BufferResolvable|Stream} attachment The file
|
||||||
* @param {APIAttachment} [data] Extra data
|
* @param {AttachmentData} [data] Extra data
|
||||||
*/
|
*/
|
||||||
constructor(attachment, data = {}) {
|
constructor(attachment, data = {}) {
|
||||||
/**
|
/**
|
||||||
@@ -108,3 +108,9 @@ module.exports = AttachmentBuilder;
|
|||||||
* @external APIAttachment
|
* @external APIAttachment
|
||||||
* @see {@link https://discord.com/developers/docs/resources/channel#attachment-object}
|
* @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
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user