From 4750fcc7bd4616fd0197c98374eaa5c725eb4e88 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Sun, 5 Sep 2021 18:01:51 +0200 Subject: [PATCH] changed PhareOccurrenceData exporting file --- src/managers/CommandManager.ts | 4 ++-- src/types/BaseCommand.ts | 6 ++++++ src/types/TextCommand.ts | 5 ----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/managers/CommandManager.ts b/src/managers/CommandManager.ts index 3159da6..72215b7 100644 --- a/src/managers/CommandManager.ts +++ b/src/managers/CommandManager.ts @@ -4,10 +4,10 @@ import { BaseCommand } from "../structures/BaseCommand.js"; import { MissingParameterError } from "../errors.js"; import { BooleanParameter, InputParameter, NumberParameter, ObjectParameter, StringParameter } from "../structures/Parameter.js"; import { TextCommand } from "../structures/TextCommand.js"; -import { CommandMessageStructure, PhraseOccurrenceData } from "../types/TextCommand.js"; +import { CommandMessageStructure } from "../types/TextCommand.js"; import { applicationState } from "../state.js"; import { MessageCommand } from "../structures/MessageCommand.js"; -import { CommandType } from "../types/BaseCommand.js"; +import { CommandType, PhraseOccurrenceData } from "../types/BaseCommand.js"; import { UserCommand } from "structures/UserCommand.js"; import { RegisteredCommandObject } from "types/api.js"; diff --git a/src/types/BaseCommand.ts b/src/types/BaseCommand.ts index bf019b0..c76e28e 100644 --- a/src/types/BaseCommand.ts +++ b/src/types/BaseCommand.ts @@ -2,6 +2,7 @@ import { MessageEmbed, ReplyMessageOptions, Message, CommandInteraction } from " import { InputParameter } from "structures/Parameter.js"; import { ParameterResolvable } from "./Parameter.js"; import { PermissionCheckTypes, PermissionTypes } from "./permissions.js"; +import { BaseCommand } from "../structures/BaseCommand.js"; export interface BaseCommandInit { name: string; @@ -20,3 +21,8 @@ export type CommandFunction = ( interaction: Message | CommandInteraction, argumentAccessor?: (query: string, returnType?: "value" | "object") => ParameterResolvable | InputParameter | null ) => CommandFunctionReturnTypes; + +export interface PhraseOccurrenceData { + command: BaseCommand; + type: "NAME" | "ALIAS"; +} diff --git a/src/types/TextCommand.ts b/src/types/TextCommand.ts index 075c81e..12fb489 100644 --- a/src/types/TextCommand.ts +++ b/src/types/TextCommand.ts @@ -95,8 +95,3 @@ export interface CommandMessageStructure { } export type GetMode = "ALL" | "PREFIX" | "NO_PREFIX"; - -export interface PhraseOccurrenceData { - command: TextCommand; - type: "NAME" | "ALIAS"; -}