From 76651acd4954cd877f6c3b7b07d47858050bbb90 Mon Sep 17 00:00:00 2001 From: Advaith Date: Mon, 15 Mar 2021 16:03:32 -0700 Subject: [PATCH] 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 --- deno/v8/payloads/interactions.ts | 27 +-------------------------- v8/payloads/interactions.ts | 27 +-------------------------- 2 files changed, 2 insertions(+), 52 deletions(-) diff --git a/deno/v8/payloads/interactions.ts b/deno/v8/payloads/interactions.ts index 822c44a9..40c28bdc 100644 --- a/deno/v8/payloads/interactions.ts +++ b/deno/v8/payloads/interactions.ts @@ -182,26 +182,11 @@ export interface APIApplicationCommandInteractionDataOption { */ export type APIInteractionResponse = | APIInteractionResponsePong - | APIInteractionResponseAcknowledge - | APIInteractionResponseChannelMessage | APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource; export type APIInteractionResponsePong = InteractionResponsePayload; -/** - * @deprecated Use `APIInteractionResponseDeferredChannelMessageWithSource` instead; will be removed on April 9, 2021 - */ -export type APIInteractionResponseAcknowledge = InteractionResponsePayload; - -/** - * @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 */ diff --git a/v8/payloads/interactions.ts b/v8/payloads/interactions.ts index 7ba79fd6..8be84281 100644 --- a/v8/payloads/interactions.ts +++ b/v8/payloads/interactions.ts @@ -182,26 +182,11 @@ export interface APIApplicationCommandInteractionDataOption { */ export type APIInteractionResponse = | APIInteractionResponsePong - | APIInteractionResponseAcknowledge - | APIInteractionResponseChannelMessage | APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource; export type APIInteractionResponsePong = InteractionResponsePayload; -/** - * @deprecated Use `APIInteractionResponseDeferredChannelMessageWithSource` instead; will be removed on April 9, 2021 - */ -export type APIInteractionResponseAcknowledge = InteractionResponsePayload; - -/** - * @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 */