From ff75eb3f5dfd7597968c26133d125cfe40ee5838 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Wed, 21 Jul 2021 12:52:28 +0300 Subject: [PATCH] fix(APIInteraction): bring back Ping type (#164) * fix(APIInteraction): bring back Ping type * fix(APIPingInteraction): there be no data here! --- deno/payloads/v8/_interactions/ping.ts | 4 ++++ deno/payloads/v8/interactions.ts | 3 ++- deno/payloads/v9/_interactions/ping.ts | 4 ++++ deno/payloads/v9/interactions.ts | 3 ++- payloads/v8/_interactions/ping.ts | 4 ++++ payloads/v8/interactions.ts | 3 ++- payloads/v9/_interactions/ping.ts | 4 ++++ payloads/v9/interactions.ts | 3 ++- 8 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 deno/payloads/v8/_interactions/ping.ts create mode 100644 deno/payloads/v9/_interactions/ping.ts create mode 100644 payloads/v8/_interactions/ping.ts create mode 100644 payloads/v9/_interactions/ping.ts diff --git a/deno/payloads/v8/_interactions/ping.ts b/deno/payloads/v8/_interactions/ping.ts new file mode 100644 index 00000000..cb70b675 --- /dev/null +++ b/deno/payloads/v8/_interactions/ping.ts @@ -0,0 +1,4 @@ +import type { APIBaseInteraction } from './base.ts'; +import type { InteractionType } from './responses.ts'; + +export type APIPingInteraction = APIBaseInteraction; diff --git a/deno/payloads/v8/interactions.ts b/deno/payloads/v8/interactions.ts index bdb64400..4026f877 100644 --- a/deno/payloads/v8/interactions.ts +++ b/deno/payloads/v8/interactions.ts @@ -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; diff --git a/deno/payloads/v9/_interactions/ping.ts b/deno/payloads/v9/_interactions/ping.ts new file mode 100644 index 00000000..cb70b675 --- /dev/null +++ b/deno/payloads/v9/_interactions/ping.ts @@ -0,0 +1,4 @@ +import type { APIBaseInteraction } from './base.ts'; +import type { InteractionType } from './responses.ts'; + +export type APIPingInteraction = APIBaseInteraction; diff --git a/deno/payloads/v9/interactions.ts b/deno/payloads/v9/interactions.ts index bdb64400..4026f877 100644 --- a/deno/payloads/v9/interactions.ts +++ b/deno/payloads/v9/interactions.ts @@ -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; diff --git a/payloads/v8/_interactions/ping.ts b/payloads/v8/_interactions/ping.ts new file mode 100644 index 00000000..c774ae4c --- /dev/null +++ b/payloads/v8/_interactions/ping.ts @@ -0,0 +1,4 @@ +import type { APIBaseInteraction } from './base'; +import type { InteractionType } from './responses'; + +export type APIPingInteraction = APIBaseInteraction; diff --git a/payloads/v8/interactions.ts b/payloads/v8/interactions.ts index 53998b7e..6260070d 100644 --- a/payloads/v8/interactions.ts +++ b/payloads/v8/interactions.ts @@ -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; diff --git a/payloads/v9/_interactions/ping.ts b/payloads/v9/_interactions/ping.ts new file mode 100644 index 00000000..c774ae4c --- /dev/null +++ b/payloads/v9/_interactions/ping.ts @@ -0,0 +1,4 @@ +import type { APIBaseInteraction } from './base'; +import type { InteractionType } from './responses'; + +export type APIPingInteraction = APIBaseInteraction; diff --git a/payloads/v9/interactions.ts b/payloads/v9/interactions.ts index 53998b7e..6260070d 100644 --- a/payloads/v9/interactions.ts +++ b/payloads/v9/interactions.ts @@ -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;