InteractionResponseType
TheInteractionResponseType enum represents the type of response that is being sent to Discord after receiving an interaction.
Enum Values
PONG
Value:1
Acknowledge a PING interaction. Used to respond to Discord’s health check pings.
CHANNEL_MESSAGE_WITH_SOURCE
Value:4
Respond with a message, showing the user’s input. This sends a message immediately to the channel.
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
Value:5
Acknowledge a command without sending a message, showing the user’s input. This displays a loading state to the user and requires a follow-up message within 15 minutes.
DEFERRED_UPDATE_MESSAGE
Value:6
Acknowledge an interaction and edit the original message that contains the component later. The user does not see a loading state.
UPDATE_MESSAGE
Value:7
Edit the message the component was attached to. Used for component interactions to update the message in place.
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT
Value:8
Callback for an app to define the autocomplete results to show to the user.
MODAL
Value:9
Respond with a modal dialog for the user to fill out.
PREMIUM_REQUIRED
Value:10
Respond with an upgrade prompt to show that the feature requires a premium subscription.
LAUNCH_ACTIVITY
Value:12
Launch an Activity (Discord’s embedded applications).