chore(APIInteractionResponse, APIInteractionResponseType): remove old response types (#94)

Because they're out :3

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
Advaith
2021-03-15 16:03:32 -07:00
committed by GitHub
parent 92f76f1a3c
commit 76651acd49
2 changed files with 2 additions and 52 deletions

View File

@@ -182,26 +182,11 @@ export interface APIApplicationCommandInteractionDataOption {
*/
export type APIInteractionResponse =
| APIInteractionResponsePong
| APIInteractionResponseAcknowledge
| APIInteractionResponseChannelMessage
| APIInteractionResponseChannelMessageWithSource
| APIInteractionResponseDeferredChannelMessageWithSource;
export type APIInteractionResponsePong = InteractionResponsePayload<APIInteractionResponseType.Pong>;
/**
* @deprecated Use `APIInteractionResponseDeferredChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
export type APIInteractionResponseAcknowledge = InteractionResponsePayload<APIInteractionResponseType.Acknowledge>;
/**
* @deprecated Use `APIInteractionResponseChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
export type APIInteractionResponseChannelMessage = InteractionResponsePayload<
APIInteractionResponseType.ChannelMessage,
true
>;
export type APIInteractionResponseChannelMessageWithSource = InteractionResponsePayload<
APIInteractionResponseType.ChannelMessageWithSource,
true
@@ -217,20 +202,10 @@ export enum APIInteractionResponseType {
* ACK a `Ping`
*/
Pong = 1,
/**
* ACK a command without sending a message, eating the user's input
* @deprecated Use `DeferredChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
Acknowledge,
/**
* Respond with a message, eating the user's input
* @deprecated Use `ChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
ChannelMessage,
/**
* Respond to an interaction with a message
*/
ChannelMessageWithSource,
ChannelMessageWithSource = 4,
/**
* ACK an interaction and edit to a response later, the user sees a loading state
*/

View File

@@ -182,26 +182,11 @@ export interface APIApplicationCommandInteractionDataOption {
*/
export type APIInteractionResponse =
| APIInteractionResponsePong
| APIInteractionResponseAcknowledge
| APIInteractionResponseChannelMessage
| APIInteractionResponseChannelMessageWithSource
| APIInteractionResponseDeferredChannelMessageWithSource;
export type APIInteractionResponsePong = InteractionResponsePayload<APIInteractionResponseType.Pong>;
/**
* @deprecated Use `APIInteractionResponseDeferredChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
export type APIInteractionResponseAcknowledge = InteractionResponsePayload<APIInteractionResponseType.Acknowledge>;
/**
* @deprecated Use `APIInteractionResponseChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
export type APIInteractionResponseChannelMessage = InteractionResponsePayload<
APIInteractionResponseType.ChannelMessage,
true
>;
export type APIInteractionResponseChannelMessageWithSource = InteractionResponsePayload<
APIInteractionResponseType.ChannelMessageWithSource,
true
@@ -217,20 +202,10 @@ export const enum APIInteractionResponseType {
* ACK a `Ping`
*/
Pong = 1,
/**
* ACK a command without sending a message, eating the user's input
* @deprecated Use `DeferredChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
Acknowledge,
/**
* Respond with a message, eating the user's input
* @deprecated Use `ChannelMessageWithSource` instead; will be removed on April 9, 2021
*/
ChannelMessage,
/**
* Respond to an interaction with a message
*/
ChannelMessageWithSource,
ChannelMessageWithSource = 4,
/**
* ACK an interaction and edit to a response later, the user sees a loading state
*/