From 65875795afd3a843ef2435794fd78eefa6eb0782 Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Sat, 4 Oct 2025 00:46:39 +0900 Subject: [PATCH] fix: mark custom_id field in button component as optional --- docs/components/reference.mdx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/components/reference.mdx b/docs/components/reference.mdx index 513f54472f..63d3c6c74d 100644 --- a/docs/components/reference.mdx +++ b/docs/components/reference.mdx @@ -160,17 +160,17 @@ Buttons must be placed inside an [Action Row](/docs/components/reference#action- ###### Button Structure -| Field | Type | Description | -|-----------|-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------------| -| type | integer | `2` for a button | -| id? | integer | Optional identifier for component | -| style | integer | A [button style](/docs/components/reference#button-button-styles) | -| label? | string | Text that appears on the button; max 80 characters | -| emoji? | partial [emoji](/docs/resources/emoji#emoji-object) | `name`, `id`, and `animated` | -| custom_id | string | Developer-defined identifier for the button; max 100 characters | -| sku_id? | snowflake | Identifier for a purchasable [SKU](/docs/resources/sku#sku-object), only available when using premium-style buttons | -| url? | string | URL for link-style buttons; max 512 characters | -| disabled? | boolean | Whether the button is disabled (defaults to `false`) | +| Field | Type | Description | +|------------|-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------------| +| type | integer | `2` for a button | +| id? | integer | Optional identifier for component | +| style | integer | A [button style](/docs/components/reference#button-button-styles) | +| label? | string | Text that appears on the button; max 80 characters | +| emoji? | partial [emoji](/docs/resources/emoji#emoji-object) | `name`, `id`, and `animated` | +| custom_id? | string | Developer-defined identifier for the button; max 100 characters | +| sku_id? | snowflake | Identifier for a purchasable [SKU](/docs/resources/sku#sku-object), only available when using premium-style buttons | +| url? | string | URL for link-style buttons; max 512 characters | +| disabled? | boolean | Whether the button is disabled (defaults to `false`) | Buttons come in various styles to convey different types of actions. These styles also define what fields are valid for a button.