xernerx 3.4.3 → 3.5.1
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/README.md +10 -10
- package/dist/build/ContextCommandBuilder.d.ts +60 -42
- package/dist/build/ContextCommandBuilder.js +93 -86
- package/dist/build/EventBuilder.d.ts +21 -17
- package/dist/build/EventBuilder.js +34 -35
- package/dist/build/InhibitorBuilder.d.ts +19 -20
- package/dist/build/InhibitorBuilder.js +27 -27
- package/dist/build/MessageCommandBuilder.d.ts +53 -42
- package/dist/build/MessageCommandBuilder.js +90 -78
- package/dist/build/SlashCommandBuilder.d.ts +58 -40
- package/dist/build/SlashCommandBuilder.js +125 -118
- package/dist/client/XernerxClient.d.ts +28 -28
- package/dist/client/XernerxClient.js +101 -83
- package/dist/handlers/CommandHandler.d.ts +27 -27
- package/dist/handlers/CommandHandler.js +42 -42
- package/dist/handlers/EventHandler.d.ts +13 -13
- package/dist/handlers/EventHandler.js +16 -16
- package/dist/handlers/Handler.d.ts +57 -57
- package/dist/handlers/Handler.js +250 -250
- package/dist/handlers/InhibitorHandler.d.ts +18 -18
- package/dist/handlers/InhibitorHandler.js +21 -21
- package/dist/main.cjs +2023 -0
- package/dist/main.d.ts +30 -30
- package/dist/main.js +42 -42
- package/dist/models/CommandArguments.d.ts +17 -17
- package/dist/models/CommandArguments.js +121 -123
- package/dist/models/Events.d.ts +24 -24
- package/dist/models/Events.js +294 -304
- package/dist/models/Extensions.d.ts +7 -7
- package/dist/models/Extensions.js +23 -23
- package/dist/tools/XernerxError.d.ts +5 -5
- package/dist/tools/XernerxError.js +8 -8
- package/dist/tools/package.d.ts +49 -38
- package/dist/tools/package.js +48 -41
- package/dist/types/enums.d.ts +35 -35
- package/dist/types/enums.js +35 -35
- package/dist/types/interfaces.d.ts +25 -25
- package/dist/types/interfaces.js +1 -1
- package/dist/types/options.d.ts +241 -206
- package/dist/types/options.js +1 -1
- package/dist/types/types.d.ts +34 -32
- package/dist/types/types.js +1 -1
- package/dist/utils/ClientUtil.d.ts +25 -25
- package/dist/utils/ClientUtil.js +222 -218
- package/dist/utils/CommandUtil.d.ts +56 -56
- package/dist/utils/CommandUtil.js +248 -260
- package/dist/validators/CommandValidations.d.ts +7 -7
- package/dist/validators/CommandValidations.js +183 -185
- package/dist/validators/InhibitorValidations.d.ts +11 -11
- package/dist/validators/InhibitorValidations.js +42 -42
- package/dist/validators/Shapes.js +1 -0
- package/package.json +54 -39
- package/dist/build/XContextCommandBuilder.d.ts +0 -40
- package/dist/build/XContextCommandBuilder.js +0 -84
- package/dist/build/XEventBuilder.d.ts +0 -17
- package/dist/build/XEventBuilder.js +0 -35
- package/dist/build/XInhibitorBuilder.d.ts +0 -20
- package/dist/build/XInhibitorBuilder.js +0 -28
- package/dist/build/XMessageCommandBuilder.d.ts +0 -42
- package/dist/build/XMessageCommandBuilder.js +0 -80
- package/dist/build/XSlashCommandBuilder.d.ts +0 -36
- package/dist/build/XSlashCommandBuilder.js +0 -114
- package/dist/models/CommandValidations.d.ts +0 -4
- package/dist/models/CommandValidations.js +0 -183
- package/dist/models/InhibitorValidations.d.ts +0 -12
- package/dist/models/InhibitorValidations.js +0 -42
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import XernerxExtensionBuilder from 'xernerx-extension-builder';
|
|
2
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
3
|
-
export default class Extensions {
|
|
4
|
-
client: XernerxClient;
|
|
5
|
-
constructor(client: XernerxClient);
|
|
6
|
-
load(extensions: Array<XernerxExtensionBuilder>, logging?: boolean): Promise<void>;
|
|
7
|
-
}
|
|
1
|
+
import XernerxExtensionBuilder from 'xernerx-extension-builder';
|
|
2
|
+
import XernerxClient from '../client/XernerxClient.js';
|
|
3
|
+
export default class Extensions {
|
|
4
|
+
client: XernerxClient;
|
|
5
|
+
constructor(client: XernerxClient);
|
|
6
|
+
load(extensions: Array<XernerxExtensionBuilder>, logging?: boolean): Promise<void>;
|
|
7
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Style } from 'dumfunctions';
|
|
2
|
-
export default class Extensions {
|
|
3
|
-
client;
|
|
4
|
-
constructor(client) {
|
|
5
|
-
this.client = client;
|
|
6
|
-
}
|
|
7
|
-
async load(extensions, logging = false) {
|
|
8
|
-
const exts = [];
|
|
9
|
-
extensions.map((extension) => {
|
|
10
|
-
try {
|
|
11
|
-
this.client.extensions[extension.name] = extension;
|
|
12
|
-
exts.push(extension.name);
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
console.error(Style.log(`Xernerx | An error occurred trying to load ${extension.name}, error: <${error}>`, {
|
|
16
|
-
color: Style.BackgroundColor.Red,
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
if (logging)
|
|
21
|
-
console.info(Style.log(`Xernerx | Loaded ${exts.length} extensions: ${exts.join(', ')}`, { color: Style.TextColor.Cyan }));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
import { Style } from 'dumfunctions';
|
|
2
|
+
export default class Extensions {
|
|
3
|
+
client;
|
|
4
|
+
constructor(client) {
|
|
5
|
+
this.client = client;
|
|
6
|
+
}
|
|
7
|
+
async load(extensions, logging = false) {
|
|
8
|
+
const exts = [];
|
|
9
|
+
extensions.map((extension) => {
|
|
10
|
+
try {
|
|
11
|
+
this.client.extensions[extension.name] = extension;
|
|
12
|
+
exts.push(extension.name);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.error(Style.log(`Xernerx | An error occurred trying to load ${extension.name}, error: <${error}>`, {
|
|
16
|
+
color: Style.BackgroundColor.Red,
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
if (logging)
|
|
21
|
+
console.info(Style.log(`Xernerx | Loaded ${exts.length} extensions: ${exts.join(', ')}`, { color: Style.TextColor.Cyan }));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default class XernerxError {
|
|
2
|
-
name: string;
|
|
3
|
-
message: string;
|
|
4
|
-
constructor(message?: string);
|
|
5
|
-
}
|
|
1
|
+
export default class XernerxError {
|
|
2
|
+
name: string;
|
|
3
|
+
message: string;
|
|
4
|
+
constructor(message?: string);
|
|
5
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default class XernerxError {
|
|
2
|
-
name;
|
|
3
|
-
message;
|
|
4
|
-
constructor(message) {
|
|
5
|
-
this.name = 'XernerxError';
|
|
6
|
-
this.message = message || '';
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
export default class XernerxError {
|
|
2
|
+
name;
|
|
3
|
+
message;
|
|
4
|
+
constructor(message) {
|
|
5
|
+
this.name = 'XernerxError';
|
|
6
|
+
this.message = message || '';
|
|
7
|
+
}
|
|
8
|
+
}
|
package/dist/tools/package.d.ts
CHANGED
|
@@ -1,38 +1,49 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
name: string;
|
|
3
|
-
version: string;
|
|
4
|
-
type: string;
|
|
5
|
-
description: string;
|
|
6
|
-
main: string;
|
|
7
|
-
keywords: string[];
|
|
8
|
-
author: string;
|
|
9
|
-
license: string;
|
|
10
|
-
homepage: string;
|
|
11
|
-
packageManager: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
version: string;
|
|
4
|
+
type: string;
|
|
5
|
+
description: string;
|
|
6
|
+
main: string;
|
|
7
|
+
keywords: string[];
|
|
8
|
+
author: string;
|
|
9
|
+
license: string;
|
|
10
|
+
homepage: string;
|
|
11
|
+
packageManager: string;
|
|
12
|
+
exports: {
|
|
13
|
+
import: string;
|
|
14
|
+
require: string;
|
|
15
|
+
types: string;
|
|
16
|
+
node: null;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
19
|
+
scripts: {
|
|
20
|
+
start: string;
|
|
21
|
+
patch: string;
|
|
22
|
+
minor: string;
|
|
23
|
+
major: string;
|
|
24
|
+
site: string;
|
|
25
|
+
commit: string;
|
|
26
|
+
write: string;
|
|
27
|
+
build: string;
|
|
28
|
+
};
|
|
29
|
+
repository: {
|
|
30
|
+
type: string;
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
bugs: {
|
|
34
|
+
url: string;
|
|
35
|
+
};
|
|
36
|
+
dependencies: {
|
|
37
|
+
'@sapphire/shapeshift': string;
|
|
38
|
+
'discord.js': string;
|
|
39
|
+
dumfunctions: string;
|
|
40
|
+
'xernerx-extension-builder': string;
|
|
41
|
+
zod: string;
|
|
42
|
+
};
|
|
43
|
+
devDependencies: {
|
|
44
|
+
prettier: string;
|
|
45
|
+
tsup: string;
|
|
46
|
+
typescript: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _default;
|
package/dist/tools/package.js
CHANGED
|
@@ -1,41 +1,48 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
export default {
|
|
2
|
+
name: 'xernerx',
|
|
3
|
+
version: '3.5.0',
|
|
4
|
+
type: 'module',
|
|
5
|
+
description: 'A bot framework for discord.js.',
|
|
6
|
+
main: 'dist/main.js',
|
|
7
|
+
keywords: ['discord.js', 'discord', 'framework', 'mjs', 'esm', 'cjs', 'ts'],
|
|
8
|
+
author: 'Dummi',
|
|
9
|
+
license: 'MIT',
|
|
10
|
+
homepage: 'https://xernerx.github.io/xernerx/home.html',
|
|
11
|
+
packageManager: 'npm@8.5.5',
|
|
12
|
+
exports: {
|
|
13
|
+
import: './dist/main.js',
|
|
14
|
+
require: './dist/main.cjs',
|
|
15
|
+
types: './types',
|
|
16
|
+
node: null,
|
|
17
|
+
default: null,
|
|
18
|
+
},
|
|
19
|
+
scripts: {
|
|
20
|
+
start: 'npm i && npm fund && npm audit fix --force && npm link && tsc -w',
|
|
21
|
+
patch: 'npm run write && git add . && npm run commit && npm version patch && npm publish && git push',
|
|
22
|
+
minor: 'npm run write && git add . && npm run commit && npm version minor && npm publish && git push',
|
|
23
|
+
major: 'npm run write && git add . && npm run commit && npm version major && npm publish && git push',
|
|
24
|
+
site: 'git add docs && npm run commit && git push',
|
|
25
|
+
commit: 'node ../.scripts/commit.js',
|
|
26
|
+
write: 'npm run build && node ../.scripts/rewritePackage.js ',
|
|
27
|
+
build: 'tsc && npx tsup src/main.ts && npx prettier --write src types',
|
|
28
|
+
},
|
|
29
|
+
repository: {
|
|
30
|
+
type: 'git',
|
|
31
|
+
url: 'git+https://github.com/xernerx/xernerx.git',
|
|
32
|
+
},
|
|
33
|
+
bugs: {
|
|
34
|
+
url: 'https://github.com/xernerx/xernerx/issues',
|
|
35
|
+
},
|
|
36
|
+
dependencies: {
|
|
37
|
+
'@sapphire/shapeshift': '^3.8.1',
|
|
38
|
+
'discord.js': '^14.7.0',
|
|
39
|
+
dumfunctions: '^2.0.0',
|
|
40
|
+
'xernerx-extension-builder': '^0.0.2',
|
|
41
|
+
zod: '^3.20.6',
|
|
42
|
+
},
|
|
43
|
+
devDependencies: {
|
|
44
|
+
prettier: '^2.8.4',
|
|
45
|
+
tsup: '^6.6.0',
|
|
46
|
+
typescript: '^4.9.5',
|
|
47
|
+
},
|
|
48
|
+
};
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { SlashCommandStringOption, SlashCommandNumberOption, SlashCommandIntegerOption, SlashCommandBooleanOption, SlashCommandUserOption, SlashCommandChannelOption, SlashCommandRoleOption, SlashCommandMentionableOption } from 'discord.js';
|
|
2
|
-
export declare enum InhibitorType {
|
|
3
|
-
Member = "Member",
|
|
4
|
-
User = "User",
|
|
5
|
-
Guild = "Guild",
|
|
6
|
-
SlashCommand = "SlashCommand",
|
|
7
|
-
MessageCommand = "MessageCommand",
|
|
8
|
-
ContextCommand = "ContextCommand",
|
|
9
|
-
Command = "Command",
|
|
10
|
-
Message = "Message",
|
|
11
|
-
Interaction = "Interaction",
|
|
12
|
-
Channel = "Channel"
|
|
13
|
-
}
|
|
14
|
-
export declare enum CommandType {
|
|
15
|
-
Message = "MessageCommand",
|
|
16
|
-
Slash = "SlashCommand",
|
|
17
|
-
Context = "ContextCommand",
|
|
18
|
-
Event = "Event",
|
|
19
|
-
Inhibitor = "Inhibitor",
|
|
20
|
-
MessageCommand = "MessageCommand",
|
|
21
|
-
SlashCommand = "SlashCommand",
|
|
22
|
-
ContextCommand = "ContextCommand"
|
|
23
|
-
}
|
|
24
|
-
export declare enum ContextCommandType {
|
|
25
|
-
Message = 3,
|
|
26
|
-
User = 2
|
|
27
|
-
}
|
|
28
|
-
export declare enum EventEmitterType {
|
|
29
|
-
Client = "client",
|
|
30
|
-
Rest = "rest",
|
|
31
|
-
Process = "process"
|
|
32
|
-
}
|
|
33
|
-
export type SlashCommandOptionChoices = SlashCommandStringOption | SlashCommandNumberOption | SlashCommandIntegerOption;
|
|
34
|
-
export type SlashCommandOption = SlashCommandOptionChoices | SlashCommandBooleanOption | SlashCommandUserOption | SlashCommandChannelOption | SlashCommandRoleOption | SlashCommandMentionableOption;
|
|
35
|
-
export type SlashArgumentTypes = 'String' | 'Number' | 'Boolean' | 'User' | 'Channel' | 'Role' | 'Mentionable' | 'Integer';
|
|
1
|
+
import { SlashCommandStringOption, SlashCommandNumberOption, SlashCommandIntegerOption, SlashCommandBooleanOption, SlashCommandUserOption, SlashCommandChannelOption, SlashCommandRoleOption, SlashCommandMentionableOption } from 'discord.js';
|
|
2
|
+
export declare enum InhibitorType {
|
|
3
|
+
Member = "Member",
|
|
4
|
+
User = "User",
|
|
5
|
+
Guild = "Guild",
|
|
6
|
+
SlashCommand = "SlashCommand",
|
|
7
|
+
MessageCommand = "MessageCommand",
|
|
8
|
+
ContextCommand = "ContextCommand",
|
|
9
|
+
Command = "Command",
|
|
10
|
+
Message = "Message",
|
|
11
|
+
Interaction = "Interaction",
|
|
12
|
+
Channel = "Channel"
|
|
13
|
+
}
|
|
14
|
+
export declare enum CommandType {
|
|
15
|
+
Message = "MessageCommand",
|
|
16
|
+
Slash = "SlashCommand",
|
|
17
|
+
Context = "ContextCommand",
|
|
18
|
+
Event = "Event",
|
|
19
|
+
Inhibitor = "Inhibitor",
|
|
20
|
+
MessageCommand = "MessageCommand",
|
|
21
|
+
SlashCommand = "SlashCommand",
|
|
22
|
+
ContextCommand = "ContextCommand"
|
|
23
|
+
}
|
|
24
|
+
export declare enum ContextCommandType {
|
|
25
|
+
Message = 3,
|
|
26
|
+
User = 2
|
|
27
|
+
}
|
|
28
|
+
export declare enum EventEmitterType {
|
|
29
|
+
Client = "client",
|
|
30
|
+
Rest = "rest",
|
|
31
|
+
Process = "process"
|
|
32
|
+
}
|
|
33
|
+
export type SlashCommandOptionChoices = SlashCommandStringOption | SlashCommandNumberOption | SlashCommandIntegerOption;
|
|
34
|
+
export type SlashCommandOption = SlashCommandOptionChoices | SlashCommandBooleanOption | SlashCommandUserOption | SlashCommandChannelOption | SlashCommandRoleOption | SlashCommandMentionableOption;
|
|
35
|
+
export type SlashArgumentTypes = 'String' | 'Number' | 'Boolean' | 'User' | 'Channel' | 'Role' | 'Mentionable' | 'Integer';
|
package/dist/types/enums.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export var InhibitorType;
|
|
2
|
-
(function (InhibitorType) {
|
|
3
|
-
InhibitorType["Member"] = "Member";
|
|
4
|
-
InhibitorType["User"] = "User";
|
|
5
|
-
InhibitorType["Guild"] = "Guild";
|
|
6
|
-
InhibitorType["SlashCommand"] = "SlashCommand";
|
|
7
|
-
InhibitorType["MessageCommand"] = "MessageCommand";
|
|
8
|
-
InhibitorType["ContextCommand"] = "ContextCommand";
|
|
9
|
-
InhibitorType["Command"] = "Command";
|
|
10
|
-
InhibitorType["Message"] = "Message";
|
|
11
|
-
InhibitorType["Interaction"] = "Interaction";
|
|
12
|
-
InhibitorType["Channel"] = "Channel";
|
|
13
|
-
})(InhibitorType || (InhibitorType = {}));
|
|
14
|
-
export var CommandType;
|
|
15
|
-
(function (CommandType) {
|
|
16
|
-
CommandType["Message"] = "MessageCommand";
|
|
17
|
-
CommandType["Slash"] = "SlashCommand";
|
|
18
|
-
CommandType["Context"] = "ContextCommand";
|
|
19
|
-
CommandType["Event"] = "Event";
|
|
20
|
-
CommandType["Inhibitor"] = "Inhibitor";
|
|
21
|
-
CommandType["MessageCommand"] = "MessageCommand";
|
|
22
|
-
CommandType["SlashCommand"] = "SlashCommand";
|
|
23
|
-
CommandType["ContextCommand"] = "ContextCommand";
|
|
24
|
-
})(CommandType || (CommandType = {}));
|
|
25
|
-
export var ContextCommandType;
|
|
26
|
-
(function (ContextCommandType) {
|
|
27
|
-
ContextCommandType[ContextCommandType["Message"] = 3] = "Message";
|
|
28
|
-
ContextCommandType[ContextCommandType["User"] = 2] = "User";
|
|
29
|
-
})(ContextCommandType || (ContextCommandType = {}));
|
|
30
|
-
export var EventEmitterType;
|
|
31
|
-
(function (EventEmitterType) {
|
|
32
|
-
EventEmitterType["Client"] = "client";
|
|
33
|
-
EventEmitterType["Rest"] = "rest";
|
|
34
|
-
EventEmitterType["Process"] = "process";
|
|
35
|
-
})(EventEmitterType || (EventEmitterType = {}));
|
|
1
|
+
export var InhibitorType;
|
|
2
|
+
(function (InhibitorType) {
|
|
3
|
+
InhibitorType["Member"] = "Member";
|
|
4
|
+
InhibitorType["User"] = "User";
|
|
5
|
+
InhibitorType["Guild"] = "Guild";
|
|
6
|
+
InhibitorType["SlashCommand"] = "SlashCommand";
|
|
7
|
+
InhibitorType["MessageCommand"] = "MessageCommand";
|
|
8
|
+
InhibitorType["ContextCommand"] = "ContextCommand";
|
|
9
|
+
InhibitorType["Command"] = "Command";
|
|
10
|
+
InhibitorType["Message"] = "Message";
|
|
11
|
+
InhibitorType["Interaction"] = "Interaction";
|
|
12
|
+
InhibitorType["Channel"] = "Channel";
|
|
13
|
+
})(InhibitorType = InhibitorType || (InhibitorType = {}));
|
|
14
|
+
export var CommandType;
|
|
15
|
+
(function (CommandType) {
|
|
16
|
+
CommandType["Message"] = "MessageCommand";
|
|
17
|
+
CommandType["Slash"] = "SlashCommand";
|
|
18
|
+
CommandType["Context"] = "ContextCommand";
|
|
19
|
+
CommandType["Event"] = "Event";
|
|
20
|
+
CommandType["Inhibitor"] = "Inhibitor";
|
|
21
|
+
CommandType["MessageCommand"] = "MessageCommand";
|
|
22
|
+
CommandType["SlashCommand"] = "SlashCommand";
|
|
23
|
+
CommandType["ContextCommand"] = "ContextCommand";
|
|
24
|
+
})(CommandType = CommandType || (CommandType = {}));
|
|
25
|
+
export var ContextCommandType;
|
|
26
|
+
(function (ContextCommandType) {
|
|
27
|
+
ContextCommandType[ContextCommandType["Message"] = 3] = "Message";
|
|
28
|
+
ContextCommandType[ContextCommandType["User"] = 2] = "User";
|
|
29
|
+
})(ContextCommandType = ContextCommandType || (ContextCommandType = {}));
|
|
30
|
+
export var EventEmitterType;
|
|
31
|
+
(function (EventEmitterType) {
|
|
32
|
+
EventEmitterType["Client"] = "client";
|
|
33
|
+
EventEmitterType["Rest"] = "rest";
|
|
34
|
+
EventEmitterType["Process"] = "process";
|
|
35
|
+
})(EventEmitterType = EventEmitterType || (EventEmitterType = {}));
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Collection } from 'discord.js';
|
|
2
|
-
import CommandHandler from '../handlers/CommandHandler.js';
|
|
3
|
-
import EventHandler from '../handlers/EventHandler.js';
|
|
4
|
-
import InhibitorHandler from '../handlers/InhibitorHandler.js';
|
|
5
|
-
import MessageCommandBuilder from '../build/MessageCommandBuilder.js';
|
|
6
|
-
import ContextCommandBuilder from '../build/ContextCommandBuilder.js';
|
|
7
|
-
import SlashCommandBuilder from '../build/SlashCommandBuilder.js';
|
|
8
|
-
export interface ClientCommands {
|
|
9
|
-
message: Collection<string, MessageCommandBuilder>;
|
|
10
|
-
slash: Collection<string, SlashCommandBuilder>;
|
|
11
|
-
context: Collection<string, ContextCommandBuilder>;
|
|
12
|
-
}
|
|
13
|
-
export interface ClientCache {
|
|
14
|
-
messages: Collection<string, object>;
|
|
15
|
-
cooldowns: Collection<string, object>;
|
|
16
|
-
messageCommands: Collection<string, object>;
|
|
17
|
-
slashCommands: Collection<string, object>;
|
|
18
|
-
contextCommands: Collection<string, object>;
|
|
19
|
-
commands: Collection<string, object>;
|
|
20
|
-
}
|
|
21
|
-
export interface ClientModules {
|
|
22
|
-
commandHandler: CommandHandler;
|
|
23
|
-
eventHandler: EventHandler;
|
|
24
|
-
inhibitorHandler: InhibitorHandler;
|
|
25
|
-
}
|
|
1
|
+
import { Collection } from 'discord.js';
|
|
2
|
+
import CommandHandler from '../handlers/CommandHandler.js';
|
|
3
|
+
import EventHandler from '../handlers/EventHandler.js';
|
|
4
|
+
import InhibitorHandler from '../handlers/InhibitorHandler.js';
|
|
5
|
+
import MessageCommandBuilder from '../build/MessageCommandBuilder.js';
|
|
6
|
+
import ContextCommandBuilder from '../build/ContextCommandBuilder.js';
|
|
7
|
+
import SlashCommandBuilder from '../build/SlashCommandBuilder.js';
|
|
8
|
+
export interface ClientCommands {
|
|
9
|
+
message: Collection<string, MessageCommandBuilder>;
|
|
10
|
+
slash: Collection<string, SlashCommandBuilder>;
|
|
11
|
+
context: Collection<string, ContextCommandBuilder>;
|
|
12
|
+
}
|
|
13
|
+
export interface ClientCache {
|
|
14
|
+
messages: Collection<string, object>;
|
|
15
|
+
cooldowns: Collection<string, object>;
|
|
16
|
+
messageCommands: Collection<string, object>;
|
|
17
|
+
slashCommands: Collection<string, object>;
|
|
18
|
+
contextCommands: Collection<string, object>;
|
|
19
|
+
commands: Collection<string, object>;
|
|
20
|
+
}
|
|
21
|
+
export interface ClientModules {
|
|
22
|
+
commandHandler: CommandHandler;
|
|
23
|
+
eventHandler: EventHandler;
|
|
24
|
+
inhibitorHandler: InhibitorHandler;
|
|
25
|
+
}
|
package/dist/types/interfaces.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|