Skip to content

Commit

Permalink
fix(APIInteraction): bring back Ping type (#164)
Browse files Browse the repository at this point in the history
* fix(APIInteraction): bring back Ping type

* fix(APIPingInteraction): there be no data here!
  • Loading branch information
vladfrangu committed Jul 21, 2021
1 parent f0f44e6 commit ff75eb3
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 4 deletions.
4 changes: 4 additions & 0 deletions deno/payloads/v8/_interactions/ping.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base.ts';
import type { InteractionType } from './responses.ts';

export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
3 changes: 2 additions & 1 deletion deno/payloads/v8/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents.ts';
import type { APIPingInteraction } from './_interactions/ping.ts';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
Expand All @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions deno/payloads/v9/_interactions/ping.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base.ts';
import type { InteractionType } from './responses.ts';

export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
3 changes: 2 additions & 1 deletion deno/payloads/v9/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents.ts';
import type { APIPingInteraction } from './_interactions/ping.ts';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
Expand All @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions payloads/v8/_interactions/ping.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base';
import type { InteractionType } from './responses';

export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
3 changes: 2 additions & 1 deletion payloads/v8/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents';
import type { APIPingInteraction } from './_interactions/ping';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
Expand All @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions payloads/v9/_interactions/ping.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type { APIBaseInteraction } from './base';
import type { InteractionType } from './responses';

export type APIPingInteraction = APIBaseInteraction<InteractionType.Ping, never>;
3 changes: 2 additions & 1 deletion payloads/v9/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
APIMessageComponentGuildInteraction,
APIMessageComponentInteraction,
} from './_interactions/messageComponents';
import type { APIPingInteraction } from './_interactions/ping';
import type {
APIApplicationCommandDMInteraction,
APIApplicationCommandGuildInteraction,
Expand All @@ -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;

Expand Down

0 comments on commit ff75eb3

Please sign in to comment.