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