mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
fix(types/webhook): update interaction response types (#644)
This reverts commit 1b29c92aac.
This commit is contained in:
@@ -66,12 +66,8 @@ export enum InteractionType {
|
||||
export enum InteractionResponseType {
|
||||
/** ACK a `Ping` */
|
||||
PONG = 1,
|
||||
/** ACK a command without sending a message, eating the user's input */
|
||||
ACKNOWLEDGE = 2,
|
||||
/** respond with a message, eating the user's input */
|
||||
CHANNEL_MESSAGE = 3,
|
||||
/** respond with a message, showing the user's input */
|
||||
/** Respond with a message, showing the user's input */
|
||||
CHANNEL_MESSAGE_WITH_SOURCE = 4,
|
||||
/** ACK a command without sending a message, showing the user's input */
|
||||
ACK_WITH_SOURCE = 5,
|
||||
/** ACK an interaction and edit to a response later, the user sees a loading state */
|
||||
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE,
|
||||
}
|
||||
|
||||
@@ -198,14 +198,10 @@ export interface SlashCommandCallbackData {
|
||||
export enum InteractionResponseType {
|
||||
/** ACK a `Ping` */
|
||||
PONG = 1,
|
||||
/** ACK a command without sending a message, eating the user's input */
|
||||
ACKNOWLEDGE = 2,
|
||||
/** respond with a message, eating the user's input */
|
||||
CHANNEL_MESSAGE = 3,
|
||||
/** respond with a message, showing the user's input */
|
||||
/** Respond with a message, showing the user's input */
|
||||
CHANNEL_MESSAGE_WITH_SOURCE = 4,
|
||||
/** ACK a command without sending a message, showing the user's input */
|
||||
ACK_WITH_SOURCE = 5,
|
||||
/** ACK an interaction and edit to a response later, the user sees a loading state */
|
||||
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE,
|
||||
}
|
||||
|
||||
// TODO: remove this interface for v11
|
||||
|
||||
Reference in New Issue
Block a user