Skip to content

Commit dcf8c74

Browse files
committed
added defaults
1 parent 773fa97 commit dcf8c74

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/interactions/Message_Components.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -723,12 +723,12 @@ A text display component allows you to send text.
723723

724724
###### Thumbnail Structure
725725

726-
| Field | Type | Description |
727-
|--------------|------------------------------------------------------------------------------------------------|-----------------------------------------------------|
728-
| type | integer | `11` for a thumbnail component |
729-
| 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) |
731-
| spoiler? | boolean | Whether the thumbnail is a spoiler |
726+
| Field | Type | Description |
727+
|--------------|------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|
728+
| type | integer | `11` for a thumbnail component |
729+
| 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). Defaults to `null` |
731+
| spoiler? | boolean | Whether the thumbnail is a spoiler. Defaults to `false` |
732732

733733
## Media Galleries
734734

@@ -776,11 +776,11 @@ Media gallery components allow you to group images, videos or gifs into a galler
776776

777777
###### Media Gallery Item Structure
778778

779-
| Field | Type | Description |
780-
|--------------|------------------------------------------------------------------------------------------------|--------------------------------------------------------|
781-
| 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) |
783-
| spoiler? | boolean | Whether the gallery item is a spoiler |
779+
| Field | Type | Description |
780+
|--------------|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|
781+
| 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). Defaults to `null` |
783+
| spoiler? | boolean | Whether the gallery item is a spoiler. Defaults to `false` |
784784

785785
## File Components
786786

@@ -820,7 +820,7 @@ Note: There is no "preview" support for simple text files, nor audio file suppor
820820
|----------|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
821821
| type | integer | `13` for a file component |
822822
| file | [unfurled media item object](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/unfurled-media-item-object) | The file to be displayed, supports only `attachment://<filename>` references |
823-
| spoiler? | boolean | Whether the file is a spoiler |
823+
| spoiler? | boolean | Whether the file is a spoiler. Defaults to `false` |
824824

825825
## Separators
826826

@@ -855,11 +855,11 @@ Separator components allow you to divide components with a divider. You can make
855855

856856
###### Separator Structure
857857

858-
| Field | Type | Description |
859-
|----------|---------------------------------------------------------------------------------------------------------|------------------------------------|
860-
| type | integer | `14` for a separator component |
861-
| divider? | boolean | Whether the separator is a divider |
862-
| spacing? | [seperator spacing size](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/separator-object-separator-spacing-size) | Spacing size for the separator |
858+
| Field | Type | Description |
859+
|----------|---------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
860+
| type | integer | `14` for a separator component |
861+
| divider? | boolean | Whether the separator is a divider. Defaults to `true` |
862+
| spacing? | [seperator spacing size](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/separator-object-separator-spacing-size) | Spacing size for the separator. Defaults to `1` |
863863

864864
###### Separator Spacing Size
865865

@@ -961,8 +961,8 @@ 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 |
965-
| spoiler? | boolean | Whether the container is a spoiler |
964+
| accent_color? | ?integer | Color code for the container. Defaults to `null` |
965+
| spoiler? | boolean | Whether the container is a spoiler. Defaults to `false` |
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

968968

0 commit comments

Comments
 (0)