mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-02 00:40:08 +00:00
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:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user