fix(APIInteraction): bring back Ping type (#164)

* fix(APIInteraction): bring back Ping type

* fix(APIPingInteraction): there be no data here!
This commit is contained in:
Vlad Frangu
2021-07-21 12:52:28 +03:00
committed by GitHub
parent f0f44e6db4
commit ff75eb3f5d
8 changed files with 24 additions and 4 deletions
+4
View File
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base.ts';
import type { InteractionType } from './responses.ts';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
+2 -1
View File
@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents.ts';
import type { APIPingInteraction } from './_interactions/ping.ts';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents.ts';
export * from './_interactions/responses.ts';
export * from './_interactions/slashCommands.ts';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;
+4
View File
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base.ts';
import type { InteractionType } from './responses.ts';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
+2 -1
View File
@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents.ts';
import type { APIPingInteraction } from './_interactions/ping.ts';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents.ts';
export * from './_interactions/responses.ts';
export * from './_interactions/slashCommands.ts';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;
+4
View File
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base';
import type { InteractionType } from './responses';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
+2 -1
View File
@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents';
import type { APIPingInteraction } from './_interactions/ping';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents';
export * from './_interactions/responses';
export * from './_interactions/slashCommands';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;
+4
View File
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base';
import type { InteractionType } from './responses';
export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
+2 -1
View File
@@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents';
import type { APIPingInteraction } from './_interactions/ping';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
@@ -14,7 +15,7 @@ export * from './_interactions/messageComponents';
export * from './_interactions/responses';
export * from './_interactions/slashCommands';
export type APIInteraction = APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIInteraction = APIPingInteraction | APIApplicationCommandInteraction | APIMessageComponentInteraction;
export type APIDMInteraction = APIApplicationCommandDMInteraction | APIMessageComponentDMInteraction;