fix(types/webhook): update interaction response types (#644)

This reverts commit 1b29c92aac.
This commit is contained in:
Skillz4Killz
2021-03-08 09:55:31 -05:00
committed by GitHub
parent 3a249d91d4
commit 23708cc39d
2 changed files with 6 additions and 14 deletions

View File

@@ -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,
}

View File

@@ -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