From c6d24525ad995ef4a8a67d0168bc1fb572ebf717 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Sun, 5 Sep 2021 18:09:51 +0200 Subject: [PATCH] fixed imports and added command exports --- index.ts | 6 ++++-- src/managers/CommandManager.ts | 4 ++-- src/structures/BaseCommand.ts | 2 +- src/types/BaseCommand.ts | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/index.ts b/index.ts index 28cfa3a..e27607e 100644 --- a/index.ts +++ b/index.ts @@ -1,6 +1,7 @@ -import { MessageEmbed } from "discord.js"; import { Bot } from "./src/structures/Bot.js"; import { TextCommand } from "./src/structures/TextCommand.js"; +import { MessageCommand } from "./src/structures/MessageCommand.js"; +import { UserCommand } from "./src/structures/UserCommand.js"; import { InitOptions } from "./src/types/Bot.js"; import { TextCommandInit, CommandMessageStructure } from "./src/types/TextCommand.js"; import { HelpMessageParams } from "./src/types/HelpMessage.js"; @@ -13,7 +14,8 @@ export default Bot; export { Bot, TextCommand, - MessageEmbed, + MessageCommand, + UserCommand, InitOptions, TextCommandInit, CommandMessageStructure, diff --git a/src/managers/CommandManager.ts b/src/managers/CommandManager.ts index 72215b7..1554da6 100644 --- a/src/managers/CommandManager.ts +++ b/src/managers/CommandManager.ts @@ -8,8 +8,8 @@ import { CommandMessageStructure } from "../types/TextCommand.js"; import { applicationState } from "../state.js"; import { MessageCommand } from "../structures/MessageCommand.js"; import { CommandType, PhraseOccurrenceData } from "../types/BaseCommand.js"; -import { UserCommand } from "structures/UserCommand.js"; -import { RegisteredCommandObject } from "types/api.js"; +import { UserCommand } from "../structures/UserCommand.js"; +import { RegisteredCommandObject } from "../types/api.js"; /** * @class Command manager diff --git a/src/structures/BaseCommand.ts b/src/structures/BaseCommand.ts index 0da6e7d..ce1bd68 100644 --- a/src/structures/BaseCommand.ts +++ b/src/structures/BaseCommand.ts @@ -1,5 +1,5 @@ import { CommandInteraction, Message, Permissions, ReplyMessageOptions, MessageEmbed, GuildMember } from "discord.js"; -import { PermissionCheckTypes } from "types/permissions.js"; +import { PermissionCheckTypes } from "../types/permissions.js"; import { CommandType, BaseCommandInit, CommandFunction } from "../types/BaseCommand.js"; import { InputParameter } from "./Parameter.js"; import { OperationSuccess, PermissionsError } from "../errors.js"; diff --git a/src/types/BaseCommand.ts b/src/types/BaseCommand.ts index c76e28e..51f5863 100644 --- a/src/types/BaseCommand.ts +++ b/src/types/BaseCommand.ts @@ -1,5 +1,5 @@ import { MessageEmbed, ReplyMessageOptions, Message, CommandInteraction } from "discord.js"; -import { InputParameter } from "structures/Parameter.js"; +import { InputParameter } from "../structures/Parameter.js"; import { ParameterResolvable } from "./Parameter.js"; import { PermissionCheckTypes, PermissionTypes } from "./permissions.js"; import { BaseCommand } from "../structures/BaseCommand.js";