Expand description
Interactions: what a user does with an app (commands, components, modals), and the app’s responses.
An Interaction holds the fields every interaction has, and its data
is an enum keyed by the interaction type (D-067). InteractionResponse is what the app
sends back (D-068).
Structs§
- Activity
Instance Resource - The Activity instance
a
LaunchActivityresponse launched. - Authorizing
Integration Owners - The installations that authorized an interaction,
keyed by
IntegrationType. - Autocomplete
Callback Data - The data of an autocomplete response: the suggested choices.
- Callback
Resource - The resource a response created.
- Command
Data - The data of a command interaction (and of an autocomplete interaction).
- Command
Data Option - An option filled in by the user: its name and its value (by option type).
- Component
Data - The data of a component interaction: which button or select menu was used, and what was selected.
- Deferred
Callback Data - The data of a deferred message response: only the flags of the message that follows.
- Interaction
- An interaction: a user used one of the app’s commands, components or modals (or Discord checks the app’s HTTP endpoint).
- Interaction
Callback - The interaction a callback response belongs to.
- Interaction
Callback Response - The callback response
Discord returns for a response sent with
with_response=true. - Interaction
Channel - The partial channel an interaction was triggered in, or a channel in
Resolveddata (D-051): the fields Discord sends there, plus the invoking member’s permissions in it. - Interaction
Guild - The partial guild an interaction was triggered in (D-051).
- Interaction
Member - A member in an interaction: the invoking
member(with itsuser) or a member inResolveddata (without user), together with theirpermissionsin the channel. - Message
Callback Data - The message data of a response:
a new message (
ChannelMessageWithSource) or the edit of the component’s message (UpdateMessage). - Message
Interaction - The interaction a message responds to
(
Message::interaction). - Modal
Callback Data - The data of a modal response: the popup’s ID, title and components.
- Modal
Submit Data - The data of a modal-submit interaction: the values the user entered in the modal’s components.
- Resolved
- The resolved data of an interaction: the objects behind the IDs in options, select menus and file uploads, keyed by ID (D-058).
- Submitted
Action Row - A submitted action row.
- Submitted
Checkbox - A submitted checkbox.
- Submitted
Entity Select - A submitted user, role, mentionable or channel select menu: the IDs of the selected
entities, whose objects are in
ModalSubmitData::resolved. - Submitted
File Upload - A submitted file upload: the IDs of the uploaded files,
whose objects are in
Resolved::attachments. - Submitted
Label - A submitted label and the input inside it.
- Submitted
Radio Group - A submitted radio group.
- Submitted
Select - A submitted string select or checkbox group.
- Submitted
Text Display - A submitted text display.
- Submitted
Text Input - A submitted text input.
- Unknown
Submitted Component - A submitted component of a type this version does not know.
Enums§
- Autocomplete
Choices - Autocomplete suggestions, typed like the option being completed.
- Command
Option Value - The value of a
CommandDataOption, by option type. - Guild
Install Owner - The owner of a guild install in
AuthorizingIntegrationOwners. - Interaction
Callback Type - The type of an interaction response.
- Interaction
Context Type - Where an interaction can be used, or was triggered from.
- Interaction
Data - The data
of an
Interaction, by interaction type (D-067). - Interaction
Response - An interaction response:
how the app answers an
Interaction, within 3 seconds, byPOST /interactions/{id}/{token}/callbackor as the body of the HTTP endpoint’s reply. - Interaction
Type - The type of an interaction.
- Mentionable
- A user or a role chosen in a mentionable option or select menu, with its resolved data.
- Submitted
Component - A submitted modal component: what the user entered, by component type.