Skip to content

Commit

Permalink
Update Receiving_and_Responding.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaZ2 authored Apr 18, 2024
1 parent cf50243 commit c2710b1
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions docs/interactions/Receiving_and_Responding.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ For [Message Components](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/) it includes ide

###### Interaction Structure

| Field | Type | Description |
|--------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| id | snowflake | ID of the interaction |
| application_id | snowflake | ID of the application this interaction is for |
| type | [interaction type](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-type) | Type of interaction |
| data?\* | [interaction data](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-data) | Interaction data payload |
| guild_id? | snowflake | Guild that the interaction was sent from |
| channel? | [partial channel](#DOCS_RESOURCES_CHANNEL/channel-object) object | Channel that the interaction was sent from |
| channel_id? | snowflake | Channel that the interaction was sent from |
| member?\*\* | [guild member](#DOCS_RESOURCES_GUILD/guild-member-object) object | Guild member data for the invoking user, including permissions |
| user? | [user](#DOCS_RESOURCES_USER/user-object) object | User object for the invoking user, if invoked in a DM |
| token | string | Continuation token for responding to the interaction |
| version | integer | Read-only property, always `1` |
| message? | [message](#DOCS_RESOURCES_CHANNEL/message-object) object | For components, the message they were attached to |
| app_permissions\*\*\* | string | Bitwise set of permissions the app has in the source location of the interaction |
| locale?\*\*\* | string | Selected [language](#DOCS_REFERENCE/locales) of the invoking user |
| guild_locale? | string | [Guild's preferred locale](#DOCS_RESOURCES_GUILD/guild-object), if invoked in a guild |
| entitlements | array of [entitlement](#DOCS_MONETIZATION_ENTITLEMENTS/entitlement-object) objects | For [monetized apps](#DOCS_MONETIZATION_OVERVIEW), any entitlements for the invoking user, representing access to premium [SKUs](#DOCS_MONETIZATION_SKUS) |
| authorizing_integration_owners | dictionary with keys of [application integration types](#DOCS_RESOURCES_APPLICATION/application-object-application-integration-types) | Mapping of installation contexts that the interaction was authorized for to related user or guild IDs. See [Authorizing Integration Owners Object](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-authorizing-integration-owners-object) for details |
| Field | Type | Description |
|-----------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| id | snowflake | ID of the interaction |
| application_id | snowflake | ID of the application this interaction is for |
| type | [interaction type](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-type) | Type of interaction |
| data?\* | [interaction data](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-data) | Interaction data payload |
| guild_id? | snowflake | Guild that the interaction was sent from |
| channel? | [partial channel](#DOCS_RESOURCES_CHANNEL/channel-object) object | Channel that the interaction was sent from |
| channel_id? | snowflake | Channel that the interaction was sent from |
| member?\*\* | [guild member](#DOCS_RESOURCES_GUILD/guild-member-object) object | Guild member data for the invoking user, including permissions |
| user? | [user](#DOCS_RESOURCES_USER/user-object) object | User object for the invoking user, if invoked in a DM |
| token | string | Continuation token for responding to the interaction |
| version | integer | Read-only property, always `1` |
| message? | [message](#DOCS_RESOURCES_CHANNEL/message-object) object | For components, the message they were attached to |
| app_permissions\*\*\* | string | Bitwise set of permissions the app has in the source location of the interaction |
| locale?\*\*\* | string | Selected [language](#DOCS_REFERENCE/locales) of the invoking user |
| guild_locale? | string | [Guild's preferred locale](#DOCS_RESOURCES_GUILD/guild-object), if invoked in a guild |
| entitlements | array of [entitlement](#DOCS_MONETIZATION_ENTITLEMENTS/entitlement-object) objects | For [monetized apps](#DOCS_MONETIZATION_OVERVIEW), any entitlements for the invoking user, representing access to premium [SKUs](#DOCS_MONETIZATION_SKUS) |
| authorizing_integration_owners?\*\*\*\* | dictionary with keys of [application integration types](#DOCS_RESOURCES_APPLICATION/application-object-application-integration-types) | Mapping of installation contexts that the interaction was authorized for to related user or guild IDs. See [Authorizing Integration Owners Object](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-authorizing-integration-owners-object) for details |
| context? | [interaction context type](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) | Context where the interaction was triggered from |

\* This is always present on application command, message component, and modal submit interaction types. It is optional for future-proofing against new interaction types
Expand Down

0 comments on commit c2710b1

Please sign in to comment.