export class AttachmentBuilder
Represents an attachment builder
Constructors
attachment: BufferResolvable | Streamdata?: AttachmentData)
constructor(attachment: BufferResolvable | Stream
data?: AttachmentData
static fromother: JSONEncodable<AttachmentPayload>) : AttachmentBuilder (
other: JSONEncodable<AttachmentPayload>
Makes a new builder instance from a preexisting attachment structure.
setDescriptiondescription: string) : this (
description: string
Sets the description of this attachment.
Returns: This attachment
setFileattachment: BufferResolvable | Streamname?: string) : this (
attachment: BufferResolvable | Stream
name?: string
Sets the file of this attachment.
Returns: This attachment
setSpoilerspoiler?: boolean) : this (
spoiler?: boolean
Sets whether this attachment is a spoiler
Returns: This attachment