export class AttachmentBuilderRepresents an attachment builder
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 = true) : this
spoiler?: boolean = true
Sets whether this attachment is a spoiler
Returns: This attachment