Skip to content

Commit 9893cfb

Browse files
Helloyunhomarkmandel
authored andcommitted
fix: mark custom_id field in button component as optional
1 parent 8f416b6 commit 9893cfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

developers/components/reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Buttons must be placed inside an [Action Row](/developers/components/reference#a
174174
| style | integer | A [button style](/developers/components/reference#button-button-styles) |
175175
| label? | string | Text that appears on the button; max 80 characters |
176176
| 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 |
177+
| custom_id? | string | Developer-defined identifier for the button; 1-100 characters |
178178
| sku_id? | snowflake | Identifier for a purchasable [SKU](/developers/resources/sku#sku-object), only available when using premium-style buttons |
179179
| url? | string | URL for link-style buttons; max 512 characters |
180180
| disabled? | boolean | Whether the button is disabled (defaults to `false`) |

0 commit comments

Comments
 (0)