Archived
changed folder structure
This commit is contained in:
1 parent
d12657e075
commit
3ff3086e3e
14 files changed
+32
-32
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import { MessageEmbed } from "discord.js";
|
||||
import { Bot } from "./src/Bot.js";
|
||||
import { Command } from "./src/Command.js";
|
||||
import { Bot } from "./src/structures/Bot.js";
|
||||
import { Command } from "./src/structures/Command.js";
|
||||
import { InitOptions } from "./src/types/Bot.js";
|
||||
import { CommandBuilder, CommandMessageStructure } from "./src/types/Command.js";
|
||||
import { HelpMessageParams } from "./src/types/HelpMessage.js";
|
||||
import { ParameterResolvable, ParameterType, ParameterSchema } from "./src/types/Parameter.js";
|
||||
import { SystemMessageAppearance, SystemMessageData } from "./src/types/SystemMessage.js";
|
||||
import { ObjectID, InputParameter, StringParameter, BooleanParameter, NumberParameter, ObjectParameter, Parameter } from "./src/Parameter.js";
|
||||
import { ObjectID, InputParameter, StringParameter, BooleanParameter, NumberParameter, ObjectParameter, Parameter } from "./src/structures/Parameter.js";
|
||||
import { PermissionsError, ParameterTypeError, MissingParameterError, OperationSuccess } from "./src/errors.js";
|
||||
|
||||
export default Bot;
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { Command } from "./Command.js";
|
||||
import { Command } from "./structures/Command.js";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { Parameter } from "./Parameter.js";
|
||||
import { Parameter } from "./structures/Parameter.js";
|
||||
import { ParameterType } from "./types/Parameter.js";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import { StateManager } from "../StateManager.js";
|
||||
|
||||
export const applicationState = new StateManager();
|
||||
@@ -1,9 +1,9 @@
|
||||
import { CommandInteraction, Message } from "discord.js";
|
||||
import { MissingParameterError } from "./errors.js";
|
||||
import { BooleanParameter, InputParameter, NumberParameter, ObjectParameter, StringParameter } from "./Parameter.js";
|
||||
import { Command } from "./Command.js";
|
||||
import { CommandMessageStructure, PhraseOccurrenceData } from "./types/Command.js";
|
||||
import { applicationState } from "./global/state.js";
|
||||
import { MissingParameterError } from "../errors.js";
|
||||
import { BooleanParameter, InputParameter, NumberParameter, ObjectParameter, StringParameter } from "../structures/Parameter.js";
|
||||
import { Command } from "../structures/Command.js";
|
||||
import { CommandMessageStructure, PhraseOccurrenceData } from "../types/Command.js";
|
||||
import { applicationState } from "../state.js";
|
||||
|
||||
/**
|
||||
* @class Command manager
|
||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
import { CommandInteraction, Message, MessageEmbed } from "discord.js";
|
||||
import { SystemMessageAppearance, SystemMessageData, MessageType } from "./types/SystemMessage";
|
||||
import { SystemMessageAppearance, SystemMessageData, MessageType } from "../types/SystemMessage.js";
|
||||
|
||||
export class SystemMessageManager {
|
||||
/**
|
||||
@@ -0,0 +1,3 @@
|
||||
import { StateManager } from "./managers/StateManager.js";
|
||||
|
||||
export const applicationState = new StateManager();
|
||||
@@ -3,14 +3,14 @@ import { Client, CommandInteraction, GuildMember, Intents, Message } from "disco
|
||||
import { EventEmitter } from "events";
|
||||
import * as http from "http";
|
||||
import { Command } from "./Command.js";
|
||||
import { CommandManager } from "./CommandManager.js";
|
||||
import { OperationSuccess, PermissionsError } from "./errors.js";
|
||||
import { CommandManager } from "../managers/CommandManager.js";
|
||||
import { OperationSuccess, PermissionsError } from "../errors.js";
|
||||
import { HelpMessage } from "./Help.js";
|
||||
import { SystemMessageManager } from "./SystemMessage.js";
|
||||
import { CommandMessageStructure } from "./types/Command.js";
|
||||
import { InitOptions } from "./types/Bot.js";
|
||||
import { HelpMessageParams } from "./types/HelpMessage.js";
|
||||
import { applicationState } from "./global/state.js";
|
||||
import { SystemMessageManager } from "../managers/SystemMessage.js";
|
||||
import { CommandMessageStructure } from "../types/Command.js";
|
||||
import { InitOptions } from "../types/Bot.js";
|
||||
import { HelpMessageParams } from "../types/HelpMessage.js";
|
||||
import { applicationState } from "../state.js";
|
||||
|
||||
export declare interface Bot {
|
||||
on(event: "READY", listener: Function): this;
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Permissions, Message, MessageEmbed, CommandInteraction, GuildMember, ReplyMessageOptions, PermissionResolvable } from "discord.js";
|
||||
import { CommandBuilder } from "./types/Command.js";
|
||||
import { ParameterResolvable } from "./types/Parameter.js";
|
||||
import { PermissionCheckTypes } from "./types/permissions.js";
|
||||
import { OperationSuccess, PermissionsError } from "./errors.js";
|
||||
import { CommandBuilder } from "../types/Command.js";
|
||||
import { ParameterResolvable } from "../types/Parameter.js";
|
||||
import { PermissionCheckTypes } from "../types/permissions.js";
|
||||
import { OperationSuccess, PermissionsError } from "../errors.js";
|
||||
import { DefaultParameter, InputParameter, Parameter } from "./Parameter.js";
|
||||
|
||||
/**
|
||||
@@ -1,7 +1,7 @@
|
||||
import { MessageEmbed } from "discord.js";
|
||||
import { Command } from "./Command.js";
|
||||
import { CommandManager } from "./CommandManager.js";
|
||||
import { HelpMessageParams } from "./types/HelpMessage.js";
|
||||
import { CommandManager } from "../managers/CommandManager.js";
|
||||
import { HelpMessageParams } from "../types/HelpMessage.js";
|
||||
|
||||
export class HelpMessage extends Command {
|
||||
constructor(cmdManager: CommandManager, params: HelpMessageParams, botName?: string) {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CategoryChannel, Guild, GuildMember, NewsChannel, Role, StageChannel, StoreChannel, TextChannel, VoiceChannel } from "discord.js";
|
||||
import { ParameterType, ParameterResolvable, ParameterSchema } from "./types/Parameter.js";
|
||||
import { ParameterType, ParameterResolvable, ParameterSchema } from "../types/Parameter.js";
|
||||
|
||||
/**
|
||||
* @class Representation of command parameter
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CommandInteraction, ReplyMessageOptions, PermissionResolvable, Message, MessageEmbed } from "discord.js";
|
||||
import { ParameterSchema, ParameterResolvable } from "./Parameter.js";
|
||||
import { InputParameter } from "../Parameter.js";
|
||||
import { Command } from "../Command.js";
|
||||
import { InputParameter } from "../structures/Parameter.js";
|
||||
import { Command } from "../structures/Command.js";
|
||||
import { PermissionCheckTypes } from "./permissions.js";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ObjectID } from "../Parameter.js";
|
||||
import { ObjectID } from "../structures/Parameter.js";
|
||||
|
||||
export type ParameterType = "string" | "boolean" | "number" | "user" | "role" | "channel" | "mentionable";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ColorResolvable, GuildMember, User } from "discord.js";
|
||||
import { Command } from "../Command.js";
|
||||
import { Command } from "../structures/Command.js";
|
||||
import { PermissionsError } from "../errors.js";
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user