From 10cbfdddf714070249db533fce3e268259638ffd Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Wed, 8 Sep 2021 00:10:51 +0200 Subject: [PATCH] changed CommandInteraction to Interaction --- src/structures/ChatCommand.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/ChatCommand.ts b/src/structures/ChatCommand.ts index abd7bff..7186711 100644 --- a/src/structures/ChatCommand.ts +++ b/src/structures/ChatCommand.ts @@ -1,4 +1,4 @@ -import { Message, CommandInteraction } from "discord.js"; +import { Message, Interaction } from "discord.js"; import { BaseCommand } from "./BaseCommand.js"; import { ChatCommandInit } from "../types/ChatCommand.js"; import { DefaultParameter, InputParameter, Parameter } from "./Parameter.js"; @@ -86,8 +86,8 @@ export class ChatCommand extends BaseCommand { * @param {InputParameter[]} [cmdParams] - list of processed parameters passed in a Discord interaction * @returns {Promise} */ - public async start(interaction: Message | CommandInteraction, cmdParams?: InputParameter[]): Promise { - if (!this.slash && interaction instanceof CommandInteraction) { + public async start(interaction: Message | Interaction, cmdParams?: InputParameter[]): Promise { + if (!this.slash && interaction instanceof Interaction) { throw new Error("This command is not available as a slash command"); } super.start(interaction, cmdParams);