Skip to content

Commit

Permalink
fix: correct types for autocomplete interaction data (#234)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The types for autocomplete interactions have been corrected.
  • Loading branch information
suneettipirneni committed Nov 9, 2021
1 parent 7a15c97 commit 691abb5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deno/payloads/v8/_interactions/autocomplete.ts
@@ -1,6 +1,6 @@
import type { APIApplicationCommandInteractionData, APIBaseInteraction, InteractionType } from '../mod.ts';
import type { APIBaseInteraction, APIChatInputApplicationCommandInteractionData, InteractionType } from '../mod.ts';

export type APIApplicationCommandAutocompleteInteraction = APIBaseInteraction<
InteractionType.ApplicationCommandAutocomplete,
APIApplicationCommandInteractionData
APIChatInputApplicationCommandInteractionData
>;
4 changes: 2 additions & 2 deletions deno/payloads/v9/_interactions/autocomplete.ts
@@ -1,6 +1,6 @@
import type { APIApplicationCommandInteractionData, APIBaseInteraction, InteractionType } from '../mod.ts';
import type { APIBaseInteraction, APIChatInputApplicationCommandInteractionData, InteractionType } from '../mod.ts';

export type APIApplicationCommandAutocompleteInteraction = APIBaseInteraction<
InteractionType.ApplicationCommandAutocomplete,
APIApplicationCommandInteractionData
APIChatInputApplicationCommandInteractionData
>;
4 changes: 2 additions & 2 deletions payloads/v8/_interactions/autocomplete.ts
@@ -1,6 +1,6 @@
import type { APIApplicationCommandInteractionData, APIBaseInteraction, InteractionType } from '../index';
import type { APIBaseInteraction, APIChatInputApplicationCommandInteractionData, InteractionType } from '../index';

export type APIApplicationCommandAutocompleteInteraction = APIBaseInteraction<
InteractionType.ApplicationCommandAutocomplete,
APIApplicationCommandInteractionData
APIChatInputApplicationCommandInteractionData
>;
4 changes: 2 additions & 2 deletions payloads/v9/_interactions/autocomplete.ts
@@ -1,6 +1,6 @@
import type { APIApplicationCommandInteractionData, APIBaseInteraction, InteractionType } from '../index';
import type { APIBaseInteraction, APIChatInputApplicationCommandInteractionData, InteractionType } from '../index';

export type APIApplicationCommandAutocompleteInteraction = APIBaseInteraction<
InteractionType.ApplicationCommandAutocomplete,
APIApplicationCommandInteractionData
APIChatInputApplicationCommandInteractionData
>;

0 comments on commit 691abb5

Please sign in to comment.