Skip to content

Commit

Permalink
Update Message_Components.md (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
BanTheNons committed Jul 1, 2021
1 parent a213097 commit 6492434
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/interactions/Message_Components.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ An Action Row is a non-interactive container component for other types of compon

Responding to a user interacting with a component is the same as other interaction types, like slash commands. You can simply ACK the request, send a followup message, or edit the original message to something new. Check out [Responding to An Interaction](#DOCS_INTERACTIONS_SLASH_COMMANDS/responding-to-an-interaction) and [interaction response](#DOCS_INTERACTIONS_SLASH_COMMANDS/interaction-response-object) for more.

> danger
> Your application should take care to validate data sent in component interactions. For example, ensuring that the `custom_id` originates from the received message. In the future this information will be validated by the API.
## Custom ID

Components, aside from Action Rows, must have a `custom_id` field. This field is defined by the developer when sending the component payload, and is returned in the interaction payload sent when a user interacts with the component. For example, if you set `custom_id: click_me` on a button, you'll receive an interaction containing `custom_id: click_me` when a user clicks that button.
Expand Down

0 comments on commit 6492434

Please sign in to comment.