Skip to content

Commit 699f82c

Browse files
committed
add nullability
1 parent d139c39 commit 699f82c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/interactions/Message_Components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ A text display component allows you to send text.
727727
|--------------|------------------------------------------------------------------------------------------------|-----------------------------------------------------|
728728
| type | integer | `11` for a thumbnail component |
729729
| media | [unfurled media item object](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/unfurled-media-item-object) | Media item for the thumbnail |
730-
| description? | string | Description for the thumbnail (max 1024 characters) |
730+
| description? | ?string | Description for the thumbnail (max 1024 characters) |
731731
| spoiler? | boolean | Whether the thumbnail is a spoiler |
732732

733733
## Media Galleries
@@ -779,7 +779,7 @@ Media gallery components allow you to group images, videos or gifs into a galler
779779
| Field | Type | Description |
780780
|--------------|------------------------------------------------------------------------------------------------|--------------------------------------------------------|
781781
| media | [unfurled media item object](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/unfurled-media-item-object) | Media item for the gallery |
782-
| description? | string | Description for the gallery item (max 1024 characters) |
782+
| description? | ?string | Description for the gallery item (max 1024 characters) |
783783
| spoiler? | boolean | Whether the gallery item is a spoiler |
784784

785785
## File Components
@@ -961,7 +961,7 @@ Containers are a new way to group components together. You can also specify a ac
961961
| Field | Type | Description |
962962
|---------------|--------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
963963
| type | integer | `17` for a container |
964-
| accent_color? | integer | Color code for the container |
964+
| accent_color? | ?integer | Color code for the container |
965965
| spoiler? | boolean | Whether the container is a spoiler |
966966
| components | array of [component objects](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object) | Can be of [type](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types) `1`, `9`, `10`, `12`, `13` or `14`; max of 10 |
967967

0 commit comments

Comments
 (0)