Skip to content

Commit 6cbafcb

Browse files
committed
we should get id back in the data object
1 parent 151d0a2 commit 6cbafcb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/interactions/Message_Components.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ Premium buttons will automatically have:
263263
"id": "846462639134605312",
264264
"guild_id": "290926798626357999",
265265
"data": {
266+
"id": 2,
266267
"custom_id": "click_one",
267268
"component_type": 2
268269
},
@@ -394,7 +395,8 @@ The payloads for the select menu components are detailed in the [select menu str
394395
"application_id": "845027738276462632",
395396
"channel_id": "772908445358620702",
396397
"data": {
397-
"component_type":3,
398+
"id": 2,
399+
"component_type": 3,
398400
"custom_id": "class_select_1",
399401
"values": [
400402
"mage",
@@ -561,9 +563,11 @@ When defining a text input component, you can set attributes to customize the be
561563
"custom_id":"cool_modal",
562564
"components": [
563565
{
566+
"id": 1,
564567
"type":1,
565568
"components":[
566569
{
570+
"id": 2,
567571
"type":4,
568572
"custom_id":"name",
569573
"label":"Name",

docs/interactions/Receiving_and_Responding.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ While the `data` field is guaranteed to be present for all [interaction types](#
107107

108108
| Field | Type | Description |
109109
|----------------|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
110+
| id | integer | [`id`](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-base-component-structure) of the component |
110111
| custom_id | string | [`custom_id`](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/custom-id) of the component |
111112
| component_type | integer | [type](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types) of the component |
112113
| values?\* | array of [select option values](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/select-menu-object-select-option-structure) | Values the user selected in a [select menu](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/select-menu-object) component |

0 commit comments

Comments
 (0)