Skip to main content
Deno 2 is finally here 🎉️
Learn more
enum InteractionResponseType
Re-export
import { InteractionResponseType } from "https://deno.land/x/drex@v1.1.1/mod.ts";

Members

APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = 8

Respond with auto-completions for Autocomplete Interactions

CHANNEL_MESSAGE_WITH_SOURCE = 4

Send a channel message as response.

DEFERRED_CHANNEL_MESSAGE = 5

Let the user know bot is processing ("thinking") and you can edit the response later

DEFERRED_MESSAGE_UPDATE = 6

Components: It will acknowledge the interaction and update the button to a loading state, and then you can PATCH the message later.

MODAL = 9

Respond with a Modal (Form)

PONG = 1

[HTTP Only] Just ack a ping.

UPDATE_MESSAGE = 7

Components: Sent in response to a button interaction to immediately update the message to which the button was attached