fixed imports and added command exports

This commit is contained in:
mmacierzanka committed 2021-09-05 18:09:51 +02:00
1 parent 903168ddd2
commit c6d24525ad
4 files changed
+8 -6

No files matched your search

+4 -2
View File
@@ -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,
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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";
+1 -1
View File
@@ -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";