Skip to content

Commit fb841f2

Browse files
authored
fix: mark custom_id field in button component as optional (discord#7880)
1 parent bd8b020 commit fb841f2

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

developers/components/reference.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,17 @@ Buttons must be placed inside an [Action Row](/developers/components/reference#a
167167
<ManualAnchor id="button-button-structure" />
168168
###### Button Structure
169169

170-
| Field | Type | Description |
171-
|-----------|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
172-
| type | integer | `2` for a button |
173-
| id? | integer | Optional identifier for component |
174-
| style | integer | A [button style](/developers/components/reference#button-button-styles) |
175-
| label? | string | Text that appears on the button; max 80 characters |
176-
| emoji? | partial [emoji](/developers/resources/emoji#emoji-object) | `name`, `id`, and `animated` |
177-
| custom_id | string | Developer-defined identifier for the button; 1-100 characters |
178-
| sku_id? | snowflake | Identifier for a purchasable [SKU](/developers/resources/sku#sku-object), only available when using premium-style buttons |
179-
| url? | string | URL for link-style buttons; max 512 characters |
180-
| disabled? | boolean | Whether the button is disabled (defaults to `false`) |
170+
| Field | Type | Description |
171+
|------------|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
172+
| type | integer | `2` for a button |
173+
| id? | integer | Optional identifier for component |
174+
| style | integer | A [button style](/developers/components/reference#button-button-styles) |
175+
| label? | string | Text that appears on the button; max 80 characters |
176+
| emoji? | partial [emoji](/developers/resources/emoji#emoji-object) | `name`, `id`, and `animated` |
177+
| custom_id? | string | Developer-defined identifier for the button; 1-100 characters |
178+
| sku_id? | snowflake | Identifier for a purchasable [SKU](/developers/resources/sku#sku-object), only available when using premium-style buttons |
179+
| url? | string | URL for link-style buttons; max 512 characters |
180+
| disabled? | boolean | Whether the button is disabled (defaults to `false`) |
181181

182182
Buttons come in various styles to convey different types of actions. These styles also define what fields are valid for a button.
183183

0 commit comments

Comments
 (0)