Skip to content

Commit dc91f07

Browse files
authored
docs: Document attachment_id for unfurled media items (discord#7611)
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
1 parent 5c096eb commit dc91f07

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docs/components/reference.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,13 +1193,16 @@ To use this component, you need to send the [message flag](/docs/resources/messa
11931193

11941194
## Unfurled Media Item Structure
11951195

1196-
| Field | Type | Description |
1197-
|---------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------|
1198-
| url | string | Supports arbitrary urls and `attachment://<filename>` references |
1199-
| proxy_url? | string | The proxied url of the media item. This field is ignored and provided by the API as part of the response |
1200-
| height? | ?integer | The height of the media item. This field is ignored and provided by the API as part of the response |
1201-
| width? | ?integer | The width of the media item. This field is ignored and provided by the API as part of the response |
1202-
| content_type? | string | The [media type](https://en.wikipedia.org/wiki/Media_type) of the content. This field is ignored and provided by the API as part of the response |
1196+
| Field | Type | Description |
1197+
|------------------|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------|
1198+
| url | string | Supports arbitrary urls and `attachment://<filename>` references |
1199+
| proxy_url? | string | The proxied url of the media item. This field is ignored and provided by the API as part of the response |
1200+
| height? | ?integer | The height of the media item. This field is ignored and provided by the API as part of the response |
1201+
| width? | ?integer | The width of the media item. This field is ignored and provided by the API as part of the response |
1202+
| content_type? | string | The [media type](https://en.wikipedia.org/wiki/Media_type) of the content. This field is ignored and provided by the API as part of the response |
1203+
| attachment_id?\* | snowflake | The id of the uploaded attachment. This field is ignored and provided by the API as part of the response |
1204+
1205+
\* Only present if the media item was uploaded as an attachment.
12031206

12041207
### Uploading a file
12051208

0 commit comments

Comments
 (0)