Skip to content

Commit ef70de8

Browse files
authored
Add limits to alt texts
1 parent 7629dee commit ef70de8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/components/reference.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ To use this component, you need to send the [message flag](/docs/resources/messa
924924
| type | integer | `11` for thumbnail component |
925925
| id? | integer | Optional identifier for component |
926926
| media | [unfurled media item](/docs/components/reference#unfurled-media-item-structure) | A url or attachment |
927-
| description? | string | Alt text for the media |
927+
| description? | string | Alt text for the media, max 1024 characters |
928928
| spoiler? | boolean | Whether the thumbnail should be a spoiler (or blurred out). Defaults to `false` |
929929

930930
###### Example
@@ -954,7 +954,7 @@ To use this component, you need to send the [message flag](/docs/resources/messa
954954
| Field | Type | Description |
955955
|--------------|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
956956
| media | [unfurled media item](/docs/components/reference#unfurled-media-item-structure) | A url or attachment |
957-
| description? | string | Alt text for the media |
957+
| description? | string | Alt text for the media, max 1024 characters |
958958
| spoiler? | boolean | Whether the media should be a spoiler (or blurred out). Defaults to `false` |
959959

960960
###### Example

0 commit comments

Comments
 (0)