fix: interaction type

This commit is contained in:
ITOH
2021-06-06 17:58:00 +02:00
parent f3ca6e16bd
commit c44fd79bbe

View File

@@ -7,11 +7,7 @@ import { SelectMenuData } from "../messages/components/select_data.ts";
import { ButtonData } from "../messages/components/button_data.ts";
/** https://discord.com/developers/docs/interactions/slash-commands#interaction */
export interface Interaction extends BaseInteraction {
/** The command data payload */
data?: ApplicationCommandInteractionData | ButtonData | SelectMenuData;
}
export type Interaction = SlashCommandInteraction | ComponentInteraction;
export interface SlashCommandInteraction extends BaseInteraction {
type: DiscordInteractionTypes.ApplicationCommand;
data?: ApplicationCommandInteractionData;