fix: correct types for autocomplete interaction data (#234)

BREAKING CHANGE: The types for autocomplete interactions have been corrected.
This commit is contained in:
Suneet Tipirneni
2021-11-09 15:40:26 -05:00
committed by GitHub
parent 7a15c97863
commit 691abb581f
4 changed files with 8 additions and 8 deletions

View File

@@ -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
>;

View File

@@ -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
>;

View File

@@ -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
>;

View File

@@ -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
>;