From c44fd79bbe6da902b97368cebcd2cf902d29ceff Mon Sep 17 00:00:00 2001 From: ITOH Date: Sun, 6 Jun 2021 17:58:00 +0200 Subject: [PATCH] fix: interaction type --- src/types/interactions/interaction.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/types/interactions/interaction.ts b/src/types/interactions/interaction.ts index aa56a91a1..57d4b32c1 100644 --- a/src/types/interactions/interaction.ts +++ b/src/types/interactions/interaction.ts @@ -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;