Skip to content

Commit f0bd387

Browse files
committed
add more info
1 parent 6bc871d commit f0bd387

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/interactions/Message_Components.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,13 @@ Upon resolving by discord, it returns the full object, including metadata about
986986
|-------|--------|------------------------------------------------------------------|
987987
| url | string | Supports arbitrary URLs and `attachment://<filename>` references |
988988

989+
###### Unfurled Media Item Loading State
990+
| Value | State |
991+
|-------|------------------|
992+
| 0 | Unknown |
993+
| 1 | Loading |
994+
| 2 | Loaded Success |
995+
| 3 | Loaded Not Found |
989996

990997
###### Resolved Unfurled Media Item Example
991998

@@ -1002,3 +1009,14 @@ Upon resolving by discord, it returns the full object, including metadata about
10021009
"flags": 0
10031010
}
10041011
```
1012+
1013+
###### Resolved Unfurled Media Item Structure
1014+
1015+
| Field | Type | Description |
1016+
|---------------|---------|-------------------------------------------------------------------------------------------------|
1017+
| url | string | source url of media item (only supports http(s) and attachments) |
1018+
| proxy_url | string | a proxied url of the media item |
1019+
| height | integer | height of media item |
1020+
| width | integer | width of media item |
1021+
| content_type | string | the media item's [media type](https://en.wikipedia.org/wiki/Media_type) |
1022+
| loading_state | integer | [loading state](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/unfurled-media-item-object-loading-state) |

0 commit comments

Comments
 (0)