Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/components/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -997,12 +997,12 @@ To use this component, you need to send the [message flag](/docs/resources/messa

###### File Structure

| Field | Type | Description |
|----------|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| type | integer | `13` for a file component |
| id? | integer | Optional identifier for component |
| file | [unfurled media item](/docs/components/reference#unfurled-media-item-structure) | This unfurled media item is unique in that it **only** support attachment references using the `attachment://<filename>` syntax |
| spoiler? | boolean | Whether the media should be a spoiler (or blurred out). Defaults to `false` |
| Field | Type | Description |
|----------|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|
| type | integer | `13` for a file component |
| id? | integer | Optional identifier for component |
| file | [unfurled media item](/docs/components/reference#unfurled-media-item-structure) | This unfurled media item is unique in that it **only** supports attachment references using the `attachment://<filename>` syntax |
| spoiler? | boolean | Whether the media should be a spoiler (or blurred out). Defaults to `false` |

###### Example

Expand Down Expand Up @@ -1191,4 +1191,4 @@ Legacy Message Component Example
}
]
}
```
```