zumito-framework 1.2.21 → 1.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ZumitoFramework.d.ts +5 -5
- package/dist/ZumitoFramework.js +8 -8
- package/dist/definitions/Module.d.ts +1 -1
- package/dist/definitions/Module.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +8 -8
- package/dist/modules/core/baseModule/events/discord/InteractionCreate.d.ts +1 -1
- package/dist/modules/core/baseModule/events/discord/InteractionCreate.js +1 -1
- package/dist/modules/core/baseModule/events/discord/MessageCreate.d.ts +2 -2
- package/dist/modules/core/baseModule/events/discord/MessageCreate.js +2 -2
- package/dist/services/EmojiFallback.d.ts +1 -1
- package/dist/services/{ErrorHandler.d.ts → handlers/ErrorHandler.d.ts} +3 -3
- package/dist/services/{ErrorHandler.js → handlers/ErrorHandler.js} +1 -1
- package/dist/services/{InteractionHandler.d.ts → handlers/InteractionHandler.d.ts} +4 -4
- package/dist/services/{InteractionHandler.js → handlers/InteractionHandler.js} +8 -8
- package/dist/services/{CommandManager.d.ts → managers/CommandManager.d.ts} +4 -4
- package/dist/services/{CommandManager.js → managers/CommandManager.js} +4 -4
- package/dist/services/{ModuleManager.d.ts → managers/ModuleManager.d.ts} +3 -3
- package/dist/services/{ModuleManager.js → managers/ModuleManager.js} +1 -1
- package/dist/services/{StatusManager.d.ts → managers/StatusManager.d.ts} +2 -2
- package/dist/services/{TranslationManager.d.ts → managers/TranslationManager.d.ts} +1 -1
- package/dist/services/{TranslationManager.js → managers/TranslationManager.js} +1 -1
- package/dist/services/{GuildDataGetter.d.ts → utilities/GuildDataGetter.d.ts} +1 -1
- package/package.json +1 -1
- /package/dist/services/{EmojiManager.d.ts → managers/EmojiManager.d.ts} +0 -0
- /package/dist/services/{EmojiManager.js → managers/EmojiManager.js} +0 -0
- /package/dist/services/{EventManager.d.ts → managers/EventManager.d.ts} +0 -0
- /package/dist/services/{EventManager.js → managers/EventManager.js} +0 -0
- /package/dist/services/{StatusManager.js → managers/StatusManager.js} +0 -0
- /package/dist/services/{DatabaseConfigLoader.d.ts → utilities/DatabaseConfigLoader.d.ts} +0 -0
- /package/dist/services/{DatabaseConfigLoader.js → utilities/DatabaseConfigLoader.js} +0 -0
- /package/dist/services/{GuildDataGetter.js → utilities/GuildDataGetter.js} +0 -0
- /package/dist/services/{MemberPermissionChecker.d.ts → utilities/MemberPermissionChecker.d.ts} +0 -0
- /package/dist/services/{MemberPermissionChecker.js → utilities/MemberPermissionChecker.js} +0 -0
- /package/dist/services/{RecursiveObjectMerger.d.ts → utilities/RecursiveObjectMerger.d.ts} +0 -0
- /package/dist/services/{RecursiveObjectMerger.js → utilities/RecursiveObjectMerger.js} +0 -0
- /package/dist/services/{TextFormatter.d.ts → utilities/TextFormatter.d.ts} +0 -0
- /package/dist/services/{TextFormatter.js → utilities/TextFormatter.js} +0 -0
|
@@ -3,11 +3,11 @@ import { DatabaseModel } from './definitions/DatabaseModel.js';
|
|
|
3
3
|
import { EventEmitter } from "tseep";
|
|
4
4
|
import { FrameworkEvent } from './definitions/FrameworkEvent.js';
|
|
5
5
|
import { FrameworkSettings } from './definitions/settings/FrameworkSettings.js';
|
|
6
|
-
import { StatusManager } from './services/StatusManager.js';
|
|
7
|
-
import { TranslationManager } from './services/TranslationManager.js';
|
|
8
|
-
import { EventManager } from './services/EventManager.js';
|
|
9
|
-
import { CommandManager } from './services/CommandManager.js';
|
|
10
|
-
import { ModuleManager } from './services/ModuleManager.js';
|
|
6
|
+
import { StatusManager } from './services/managers/StatusManager.js';
|
|
7
|
+
import { TranslationManager } from './services/managers/TranslationManager.js';
|
|
8
|
+
import { EventManager } from './services/managers/EventManager.js';
|
|
9
|
+
import { CommandManager } from './services/managers/CommandManager.js';
|
|
10
|
+
import { ModuleManager } from './services/managers/ModuleManager.js';
|
|
11
11
|
import { Route } from './definitions/Route.js';
|
|
12
12
|
/**
|
|
13
13
|
* @class ZumitoFramework
|
package/dist/ZumitoFramework.js
CHANGED
|
@@ -3,8 +3,8 @@ import * as url from 'url';
|
|
|
3
3
|
import { Client, } from 'discord.js';
|
|
4
4
|
import { ApiResponse } from './definitions/api/ApiResponse.js';
|
|
5
5
|
import { EventEmitter } from "tseep";
|
|
6
|
-
import { StatusManager } from './services/StatusManager.js';
|
|
7
|
-
import { TranslationManager } from './services/TranslationManager.js';
|
|
6
|
+
import { StatusManager } from './services/managers/StatusManager.js';
|
|
7
|
+
import { TranslationManager } from './services/managers/TranslationManager.js';
|
|
8
8
|
import { betterLogging } from 'better-logging';
|
|
9
9
|
import zumitoDb from 'zumito-db';
|
|
10
10
|
import cookieParser from 'cookie-parser';
|
|
@@ -12,13 +12,13 @@ import cors from 'cors';
|
|
|
12
12
|
import express from 'express';
|
|
13
13
|
import http from 'http';
|
|
14
14
|
import path from 'path';
|
|
15
|
-
import { EventManager } from './services/EventManager.js';
|
|
16
|
-
import { CommandManager } from './services/CommandManager.js';
|
|
17
|
-
import { ModuleManager } from './services/ModuleManager.js';
|
|
15
|
+
import { EventManager } from './services/managers/EventManager.js';
|
|
16
|
+
import { CommandManager } from './services/managers/CommandManager.js';
|
|
17
|
+
import { ModuleManager } from './services/managers/ModuleManager.js';
|
|
18
18
|
import { ServiceContainer } from './services/ServiceContainer.js';
|
|
19
|
-
import { GuildDataGetter } from './services/GuildDataGetter.js';
|
|
20
|
-
import { RecursiveObjectMerger } from './services/RecursiveObjectMerger.js';
|
|
21
|
-
import { MemberPermissionChecker } from './services/MemberPermissionChecker.js';
|
|
19
|
+
import { GuildDataGetter } from './services/utilities/GuildDataGetter.js';
|
|
20
|
+
import { RecursiveObjectMerger } from './services/utilities/RecursiveObjectMerger.js';
|
|
21
|
+
import { MemberPermissionChecker } from './services/utilities/MemberPermissionChecker.js';
|
|
22
22
|
import { CommandParser } from './services/CommandParser.js';
|
|
23
23
|
import { SlashCommandRefresher } from './services/SlashCommandRefresher.js';
|
|
24
24
|
// import better-logging
|
|
@@ -2,7 +2,7 @@ import { ZumitoFramework } from '../ZumitoFramework.js';
|
|
|
2
2
|
import { Command } from './commands/Command.js';
|
|
3
3
|
import { FrameworkEvent } from './FrameworkEvent.js';
|
|
4
4
|
import { DatabaseModel } from './DatabaseModel.js';
|
|
5
|
-
import { CommandManager } from '../services/CommandManager.js';
|
|
5
|
+
import { CommandManager } from '../services/managers/CommandManager.js';
|
|
6
6
|
import { ModuleParameters } from './parameters/ModuleParameters.js';
|
|
7
7
|
export declare abstract class Module {
|
|
8
8
|
protected path: string;
|
|
@@ -2,7 +2,7 @@ import { ZumitoFramework } from '../ZumitoFramework.js';
|
|
|
2
2
|
import * as fs from 'fs';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import { ButtonInteraction, CommandInteraction, ModalSubmitInteraction, StringSelectMenuInteraction, } from 'discord.js';
|
|
5
|
-
import { CommandManager } from '../services/CommandManager.js';
|
|
5
|
+
import { CommandManager } from '../services/managers/CommandManager.js';
|
|
6
6
|
import { ServiceContainer } from '../services/ServiceContainer.js';
|
|
7
7
|
export class Module {
|
|
8
8
|
path;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,27 +8,27 @@ import { CommandArguments } from './definitions/commands/CommandArguments.js';
|
|
|
8
8
|
import { CommandChoiceDefinition } from './definitions/commands/CommandChoiceDefinition.js';
|
|
9
9
|
import { CommandParameters } from './definitions/commands/CommandParameters.js';
|
|
10
10
|
import { CommandType } from './definitions/commands/CommandType.js';
|
|
11
|
-
import { DatabaseConfigLoader } from './services/DatabaseConfigLoader.js';
|
|
11
|
+
import { DatabaseConfigLoader } from './services/utilities/DatabaseConfigLoader.js';
|
|
12
12
|
import { DatabaseModel } from './definitions/DatabaseModel.js';
|
|
13
13
|
import { EmojiFallback } from './services/EmojiFallback.js';
|
|
14
14
|
import { FrameworkEvent } from './definitions/FrameworkEvent.js';
|
|
15
15
|
import { FrameworkSettings } from './definitions/FrameworkSettings.js';
|
|
16
16
|
import { Module } from './definitions/Module.js';
|
|
17
17
|
import { SelectMenuParameters } from './definitions/parameters/SelectMenuParameters.js';
|
|
18
|
-
import { TextFormatter } from './services/TextFormatter.js';
|
|
18
|
+
import { TextFormatter } from './services/utilities/TextFormatter.js';
|
|
19
19
|
import { Translation } from './definitions/Translation.js';
|
|
20
|
-
import { TranslationManager } from './services/TranslationManager.js';
|
|
20
|
+
import { TranslationManager } from './services/managers/TranslationManager.js';
|
|
21
21
|
import { ZumitoFramework } from './ZumitoFramework.js';
|
|
22
22
|
import * as discord from 'discord.js';
|
|
23
23
|
import { EventParameters } from './definitions/parameters/EventParameters.js';
|
|
24
24
|
import { ServiceContainer } from './services/ServiceContainer.js';
|
|
25
|
-
import { GuildDataGetter } from './services/GuildDataGetter.js';
|
|
25
|
+
import { GuildDataGetter } from './services/utilities/GuildDataGetter.js';
|
|
26
26
|
import { CommandParser } from './services/CommandParser.js';
|
|
27
27
|
import { SlashCommandRefresher } from './services/SlashCommandRefresher.js';
|
|
28
|
-
import { ErrorHandler } from './services/ErrorHandler.js';
|
|
28
|
+
import { ErrorHandler } from './services/handlers/ErrorHandler.js';
|
|
29
29
|
import { Route, RouteMethod } from './definitions/Route.js';
|
|
30
|
-
import { InteractionHandler } from './services/InteractionHandler.js';
|
|
31
|
-
import { CommandManager } from './services/CommandManager.js';
|
|
30
|
+
import { InteractionHandler } from './services/handlers/InteractionHandler.js';
|
|
31
|
+
import { CommandManager } from './services/managers/CommandManager.js';
|
|
32
32
|
import { ErrorType } from './definitions/ErrorType.js';
|
|
33
33
|
export { ModalSubmitParameters } from './definitions/parameters/ModalSubmitParameters.js';
|
|
34
34
|
export { CommandBinds } from './definitions/commands/CommandBinds.js';
|
package/dist/index.js
CHANGED
|
@@ -3,25 +3,25 @@ import { ButtonPressed } from './definitions/parameters/ButtonPressed.js';
|
|
|
3
3
|
import { Command } from './definitions/commands/Command.js';
|
|
4
4
|
import { CommandArguments } from './definitions/commands/CommandArguments.js';
|
|
5
5
|
import { CommandType } from './definitions/commands/CommandType.js';
|
|
6
|
-
import { DatabaseConfigLoader } from './services/DatabaseConfigLoader.js';
|
|
6
|
+
import { DatabaseConfigLoader } from './services/utilities/DatabaseConfigLoader.js';
|
|
7
7
|
import { DatabaseModel } from './definitions/DatabaseModel.js';
|
|
8
8
|
import { EmojiFallback } from './services/EmojiFallback.js';
|
|
9
9
|
import { FrameworkEvent } from './definitions/FrameworkEvent.js';
|
|
10
10
|
import { Module } from './definitions/Module.js';
|
|
11
|
-
import { TextFormatter } from './services/TextFormatter.js';
|
|
11
|
+
import { TextFormatter } from './services/utilities/TextFormatter.js';
|
|
12
12
|
import { Translation } from './definitions/Translation.js';
|
|
13
|
-
import { TranslationManager } from './services/TranslationManager.js';
|
|
13
|
+
import { TranslationManager } from './services/managers/TranslationManager.js';
|
|
14
14
|
import { ZumitoFramework } from './ZumitoFramework.js';
|
|
15
15
|
import * as discord from 'discord.js';
|
|
16
16
|
import { ServiceContainer } from './services/ServiceContainer.js';
|
|
17
|
-
import { GuildDataGetter } from './services/GuildDataGetter.js';
|
|
18
|
-
import { MemberPermissionChecker } from './services/MemberPermissionChecker.js';
|
|
17
|
+
import { GuildDataGetter } from './services/utilities/GuildDataGetter.js';
|
|
18
|
+
import { MemberPermissionChecker } from './services/utilities/MemberPermissionChecker.js';
|
|
19
19
|
import { CommandParser } from './services/CommandParser.js';
|
|
20
20
|
import { SlashCommandRefresher } from './services/SlashCommandRefresher.js';
|
|
21
|
-
import { ErrorHandler } from './services/ErrorHandler.js';
|
|
21
|
+
import { ErrorHandler } from './services/handlers/ErrorHandler.js';
|
|
22
22
|
import { Route, RouteMethod } from './definitions/Route.js';
|
|
23
|
-
import { InteractionHandler } from './services/InteractionHandler.js';
|
|
24
|
-
import { CommandManager } from './services/CommandManager.js';
|
|
23
|
+
import { InteractionHandler } from './services/handlers/InteractionHandler.js';
|
|
24
|
+
import { CommandManager } from './services/managers/CommandManager.js';
|
|
25
25
|
import { ErrorType } from './definitions/ErrorType.js';
|
|
26
26
|
export { Injectable } from './definitions/decorators/Injectable.decorator.js';
|
|
27
27
|
ServiceContainer.addService(TextFormatter, []);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventParameters } from '../../../../../definitions/parameters/EventParameters.js';
|
|
2
2
|
import { FrameworkEvent } from '../../../../../definitions/FrameworkEvent.js';
|
|
3
|
-
import { InteractionHandler } from '../../../../../services/InteractionHandler.js';
|
|
3
|
+
import { InteractionHandler } from '../../../../../services/handlers/InteractionHandler.js';
|
|
4
4
|
export declare class InteractionCreate extends FrameworkEvent {
|
|
5
5
|
once: boolean;
|
|
6
6
|
source: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FrameworkEvent } from '../../../../../definitions/FrameworkEvent.js';
|
|
2
2
|
import { ServiceContainer } from '../../../../../services/ServiceContainer.js';
|
|
3
|
-
import { InteractionHandler } from '../../../../../services/InteractionHandler.js';
|
|
3
|
+
import { InteractionHandler } from '../../../../../services/handlers/InteractionHandler.js';
|
|
4
4
|
export class InteractionCreate extends FrameworkEvent {
|
|
5
5
|
once = false;
|
|
6
6
|
source = 'discord';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ActionRowBuilder, EmbedBuilder } from 'discord.js';
|
|
2
2
|
import { EventParameters } from '../../../../../definitions/parameters/EventParameters.js';
|
|
3
3
|
import { FrameworkEvent } from '../../../../../definitions/FrameworkEvent.js';
|
|
4
|
-
import { MemberPermissionChecker } from '../../../../../services/MemberPermissionChecker.js';
|
|
4
|
+
import { MemberPermissionChecker } from '../../../../../services/utilities/MemberPermissionChecker.js';
|
|
5
5
|
import { ZumitoFramework } from '../../../../../ZumitoFramework.js';
|
|
6
|
-
import { GuildDataGetter } from '../../../../../services/GuildDataGetter.js';
|
|
6
|
+
import { GuildDataGetter } from '../../../../../services/utilities/GuildDataGetter.js';
|
|
7
7
|
export declare class MessageCreate extends FrameworkEvent {
|
|
8
8
|
once: boolean;
|
|
9
9
|
source: string;
|
|
@@ -5,9 +5,9 @@ import leven from 'leven';
|
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import { ServiceContainer } from '../../../../../services/ServiceContainer.js';
|
|
7
7
|
import { CommandParser } from '../../../../../services/CommandParser.js';
|
|
8
|
-
import { MemberPermissionChecker } from '../../../../../services/MemberPermissionChecker.js';
|
|
8
|
+
import { MemberPermissionChecker } from '../../../../../services/utilities/MemberPermissionChecker.js';
|
|
9
9
|
import { ZumitoFramework } from '../../../../../ZumitoFramework.js';
|
|
10
|
-
import { GuildDataGetter } from '../../../../../services/GuildDataGetter.js';
|
|
10
|
+
import { GuildDataGetter } from '../../../../../services/utilities/GuildDataGetter.js';
|
|
11
11
|
export class MessageCreate extends FrameworkEvent {
|
|
12
12
|
once = false;
|
|
13
13
|
source = 'discord';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ErrorType } from "
|
|
2
|
-
import { Command } from "
|
|
3
|
-
import { ZumitoFramework } from "
|
|
1
|
+
import { ErrorType } from "../../definitions/ErrorType";
|
|
2
|
+
import { Command } from "../../definitions/commands/Command";
|
|
3
|
+
import { ZumitoFramework } from "../../ZumitoFramework";
|
|
4
4
|
declare type BaseErrorOptions = {
|
|
5
5
|
exit?: boolean;
|
|
6
6
|
type: ErrorType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonInteraction, Client, CommandInteraction, Interaction, ModalSubmitInteraction, StringSelectMenuInteraction } from "discord.js";
|
|
2
|
-
import { CommandManager } from "
|
|
3
|
-
import { GuildDataGetter } from "
|
|
4
|
-
import { TranslationManager } from "
|
|
5
|
-
import { EventManager } from "
|
|
2
|
+
import { CommandManager } from "../managers/CommandManager";
|
|
3
|
+
import { GuildDataGetter } from "../utilities/GuildDataGetter";
|
|
4
|
+
import { TranslationManager } from "../managers/TranslationManager";
|
|
5
|
+
import { EventManager } from "../managers/EventManager";
|
|
6
6
|
import { InteractionHandlerSettings } from "@definitions/settings/InteractionHandlerSettings";
|
|
7
7
|
import { ErrorHandler } from "./ErrorHandler";
|
|
8
8
|
import 'reflect-metadata';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Client } from "discord.js";
|
|
2
|
-
import { CommandManager } from "
|
|
3
|
-
import { GuildDataGetter } from "
|
|
4
|
-
import { ServiceContainer } from "
|
|
5
|
-
import { CommandType } from "
|
|
6
|
-
import { ZumitoFramework } from "
|
|
7
|
-
import { TranslationManager } from "
|
|
8
|
-
import { EventManager } from "
|
|
2
|
+
import { CommandManager } from "../managers/CommandManager";
|
|
3
|
+
import { GuildDataGetter } from "../utilities/GuildDataGetter";
|
|
4
|
+
import { ServiceContainer } from "../ServiceContainer";
|
|
5
|
+
import { CommandType } from "../../definitions/commands/CommandType";
|
|
6
|
+
import { ZumitoFramework } from "../../ZumitoFramework";
|
|
7
|
+
import { TranslationManager } from "../managers/TranslationManager";
|
|
8
|
+
import { EventManager } from "../managers/EventManager";
|
|
9
9
|
import { ErrorHandler } from "./ErrorHandler";
|
|
10
|
-
import { ErrorType } from "
|
|
10
|
+
import { ErrorType } from "../../definitions/ErrorType";
|
|
11
11
|
import 'reflect-metadata';
|
|
12
12
|
export class InteractionHandler {
|
|
13
13
|
commandManager;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ZumitoFramework } from "
|
|
2
|
-
import { Command } from "
|
|
3
|
-
import { CommandLoadOptions } from "
|
|
4
|
-
import { ErrorHandler } from "
|
|
1
|
+
import { ZumitoFramework } from "../../ZumitoFramework";
|
|
2
|
+
import { Command } from "../../definitions/commands/Command.js";
|
|
3
|
+
import { CommandLoadOptions } from "../../definitions/CommandLoadOptions";
|
|
4
|
+
import { ErrorHandler } from "../handlers/ErrorHandler";
|
|
5
5
|
import 'reflect-metadata';
|
|
6
6
|
export declare class CommandManager {
|
|
7
7
|
protected commands: Map<string, Command>;
|
|
@@ -4,10 +4,10 @@ import path from "path";
|
|
|
4
4
|
import boxen from "boxen";
|
|
5
5
|
import fs from 'fs';
|
|
6
6
|
import { REST, Routes, SlashCommandBuilder } from "discord.js";
|
|
7
|
-
import { CommandType } from "
|
|
8
|
-
import { ErrorHandler } from "
|
|
9
|
-
import { ServiceContainer } from "
|
|
10
|
-
import { ErrorType } from "
|
|
7
|
+
import { CommandType } from "../../definitions/commands/CommandType.js";
|
|
8
|
+
import { ErrorHandler } from "../handlers/ErrorHandler";
|
|
9
|
+
import { ServiceContainer } from "../ServiceContainer";
|
|
10
|
+
import { ErrorType } from "../../definitions/ErrorType";
|
|
11
11
|
import 'reflect-metadata';
|
|
12
12
|
export class CommandManager {
|
|
13
13
|
commands;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ZumitoFramework } from "
|
|
2
|
-
import { Module } from "
|
|
3
|
-
import { ModuleParameters } from "
|
|
1
|
+
import { ZumitoFramework } from "../../ZumitoFramework.js";
|
|
2
|
+
import { Module } from "../../definitions/Module.js";
|
|
3
|
+
import { ModuleParameters } from "../../definitions/parameters/ModuleParameters.js";
|
|
4
4
|
export declare class ModuleManager {
|
|
5
5
|
protected modules: Map<string, Module>;
|
|
6
6
|
protected framework: ZumitoFramework;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PresenceData } from "discord.js";
|
|
2
|
-
import { StatusManagerOptions } from "
|
|
3
|
-
import { ZumitoFramework } from "
|
|
2
|
+
import { StatusManagerOptions } from "../../definitions/StatusManagerOptions";
|
|
3
|
+
import { ZumitoFramework } from "../../ZumitoFramework";
|
|
4
4
|
export declare class StatusManager {
|
|
5
5
|
/**
|
|
6
6
|
* @param {ZumitoFramework} framework - The framework instance.
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/services/{MemberPermissionChecker.d.ts → utilities/MemberPermissionChecker.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|