Represents an attachment builder
| Name | Type | Optional | Description | 
|---|---|---|---|
| attachment | BufferResolvable | Stream | No | None | 
| data | AttachmentData | Yes | None | 
Makes a new builder instance from a preexisting attachment structure.
| Name | Type | Optional | Description | 
|---|---|---|---|
| other | JSONEncodable<AttachmentPayload> | No | The builder to construct a new instance from | 
Sets the description of this attachment.
Returns
This attachment| Name | Type | Optional | Description | 
|---|---|---|---|
| description | string | No | The description of the file | 
Sets the file of this attachment.
Returns
This attachment| Name | Type | Optional | Description | 
|---|---|---|---|
| attachment | BufferResolvable | Stream | No | The file | 
| name | string | Yes | None | 
Sets the name of this attachment.
Returns
This attachment| Name | Type | Optional | Description | 
|---|---|---|---|
| name | string | No | The name of the file | 
Sets whether this attachment is a spoiler
Returns
This attachment| Name | Type | Optional | Description | 
|---|---|---|---|
| spoiler | boolean | Yes | Whether the attachment should be marked as a spoiler |