Attachment
attachment
Used to create an attachment.
An attachment can be created in different ways, either by using a file, URL, or from a string that will be the raw data of the file.
Schema fields #
Key | Type | Description |
---|---|---|
file |
File object | The file to use for the attachment. |
name |
String | The name of the attachment. |
description |
String | The description of the attachment. This is the alt-text for images. |
spoiler |
Boolean | Whether this attachment is marked as a spoiler. |