changed PhareOccurrenceData exporting file

This commit is contained in:
mmacierzanka committed 2021-09-05 18:01:51 +02:00
1 parent a38c248bd6
commit 4750fcc7bd
3 files changed
+8 -7

No files matched your search

+2 -2
View File
@@ -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";
+6
View File
@@ -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";
}
-5
View File
@@ -95,8 +95,3 @@ export interface CommandMessageStructure {
}
export type GetMode = "ALL" | "PREFIX" | "NO_PREFIX";
export interface PhraseOccurrenceData {
command: TextCommand;
type: "NAME" | "ALIAS";
}