trivious 1.6.14 → 1.6.16
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/core/client/trivious.client.d.ts +1 -1
- package/dist/core/commands/methods.command.d.ts +1 -1
- package/dist/core/events/clientReady.d.ts +1 -1
- package/dist/core/events/interactionCreate.d.ts +1 -1
- package/dist/core/registry/command.registry.d.ts +1 -1
- package/dist/core/registry/command.registry.js +1 -1
- package/dist/core/registry/command.registry.js.map +1 -1
- package/dist/core/registry/component.registry.d.ts +1 -1
- package/dist/core/registry/component.registry.js +1 -1
- package/dist/core/registry/component.registry.js.map +1 -1
- package/dist/core/registry/event.registry.d.ts +1 -1
- package/dist/core/registry/event.registry.js +1 -1
- package/dist/core/registry/event.registry.js.map +1 -1
- package/dist/core/registry/index.d.ts +1 -1
- package/dist/core/registry/module.registry.d.ts +1 -1
- package/dist/core/registry/module.registry.js +1 -2
- package/dist/core/registry/module.registry.js.map +1 -1
- package/dist/{index-D1Oz0EU6.d.ts → index-ddJZHFmz.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/shared/typings/commands.d.ts +1 -1
- package/dist/shared/typings/components.d.ts +1 -1
- package/dist/shared/typings/events.d.ts +1 -1
- package/dist/shared/typings/index.d.ts +1 -1
- package/dist/shared/typings/module.d.ts +1 -1
- package/dist/shared/utility/components.utility.d.ts +1 -1
- package/dist/shared/utility/functions.d.ts +1 -1
- package/dist/shared/utility/permissions.utility.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
|
-
export { p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from '../../index-
|
|
2
|
+
export { p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from '../../index-ddJZHFmz.js';
|
|
3
3
|
import '../../shared/typings/permissions.js';
|
|
4
4
|
import '../../shared/typings/registry.js';
|
|
5
5
|
import '../../shared/typings/client.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as discord_js from 'discord.js';
|
|
2
|
-
import { T as TriviousClient } from '../../index-
|
|
2
|
+
import { T as TriviousClient } from '../../index-ddJZHFmz.js';
|
|
3
3
|
import '../../shared/typings/permissions.js';
|
|
4
4
|
import '../../shared/typings/registry.js';
|
|
5
5
|
import '../../shared/typings/client.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as discord_js from 'discord.js';
|
|
2
2
|
import { CacheType } from 'discord.js';
|
|
3
|
-
import { T as TriviousClient } from '../../index-
|
|
3
|
+
import { T as TriviousClient } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import '../../shared/typings/permissions.js';
|
|
5
5
|
import '../../shared/typings/registry.js';
|
|
6
6
|
import '../../shared/typings/client.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
2
|
import '../../shared/typings/registry.js';
|
|
3
|
-
export { C as default } from '../../index-
|
|
3
|
+
export { C as default } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import '../../shared/typings/permissions.js';
|
|
5
5
|
import '../../shared/typings/client.js';
|
|
6
6
|
import '../builders/util.builders.js';
|
|
@@ -29,7 +29,7 @@ class CommandRegistry extends BaseRegistry {
|
|
|
29
29
|
else continue;
|
|
30
30
|
const command = await this.importFile(commandFile);
|
|
31
31
|
if (!command || !command.active || !("data" in command)) continue;
|
|
32
|
-
if (command.context === "SlashCommand") {
|
|
32
|
+
if (command.context === "SlashCommand" && "addSubcommand" in command.data) {
|
|
33
33
|
const subcommandFiles = (await promises.readdir(fullPath)).filter(
|
|
34
34
|
(file) => (file.endsWith(".ts") || file.endsWith(".js")) && !file.startsWith("index.") && !file.endsWith(".d.ts")
|
|
35
35
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/registry/command.registry.ts"],"names":["fs"],"mappings":";;;;;;AAoBA,MAAO,wBAAsC,YAAA,CAAsB;AAAA,EACxD,KAAA,GAA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,KAAK,CAAA,IAAK,KAAK,QAAA,CAAS,KAAK,CAAA,KAC5C,CAAC,KAAK,UAAA,CAAW,QAAQ,KACzB,CAAC,IAAA,CAAK,SAAS,OAAO;AAAA,SACxB;AAEA,QAAA,KAAA,MAAW,QAAQ,eAAA,EAAiB;AACnC,UAAA,MAAM,aAAa,MAAM,IAAA,CAAK,WAA4B,IAAA,CAAK,QAAA,EAAU,IAAI,CAAC,CAAA;AAC9E,UAAA,IAAI,CAAC,UAAA,EAAY;AACjB,UAAA,IAAI,CAAC,UAAA,CAAW,IAAA,CAAK,IAAA,IAAQ,EAAE,WAAW,IAAA,YAAgB,6BAAA,CAAA;AACzD,YAAA;AAED,UAAA,IAAI,CAAC,OAAA,CAAQ,WAAA,EAAa,OAAA,CAAQ,WAAA,GAAc,IAAI,UAAA,EAAoC;AACxF,UAAA,OAAA,CAAQ,WAAA,CAAY,GAAA,CAAI,UAAA,CAAW,IAAA,CAAK,MAAM,UAAU,CAAA;AACxD,UAAA,OAAA,CAAQ,IAAA,CAAK,aAAA,CAAc,UAAA,CAAW,IAAI,CAAA;AAAA,QAC3C;AAAA,MACD;AAEA,MAAA,IAAA,CAAK,KAAA,CAAM,GAAA,CAAI,OAAA,CAAQ,IAAA,CAAK,MAAM,OAAO,CAAA;AAAA,IAC1C;AAEA,IAAA,OAAO,IAAA;AAAA,EACR;AACD","file":"command.registry.js","sourcesContent":["import { Collection, SlashCommandSubcommandBuilder } from \"discord.js\";\nimport {\n\tBaseRegistry,\n\tCommand,\n\tContextMenuCommand,\n\tSlashCommand,\n\tSlashSubcommand,\n} from \"src/shared/typings/index.js\";\nimport { exists, resolveUserPath } from \"src/shared/utility/functions.js\";\nimport { promises as fs } from \"fs\";\nimport path, { join } from \"node:path\";\n\n/**\n * Registry to load and get all commands.\n *\n * @export\n * @class CommandRegistry\n * @typedef {CommandRegistry}\n * @extends {BaseRegistry<AnyCommand>}\n */\nexport default class CommandRegistry extends BaseRegistry<Command> {\n\tprotected items = new Collection<string, Command>();\n\n\t/**\n\t * Load all commands and their subcommands\n\t *\n\t * @async\n\t * @param {string} [directory=getCorePath({ coreDirectory: \"commands\" })]\n\t * @returns {unknown}\n\t */\n\tasync load(directory: string = resolveUserPath(path.join(\"src\", \"commands\"))) {\n\t\tif (!(await exists(directory))) {\n\t\t\treturn this;\n\t\t}\n\n\t\tconst entries = await fs.readdir(directory, { withFileTypes: true });\n\n\t\tfor (const entry of entries) {\n\t\t\tconst fullPath = join(directory, entry.name);\n\t\t\tif (!entry.isDirectory()) continue;\n\n\t\t\tconst indexFile = join(fullPath, \"index.ts\");\n\t\t\tconst indexJs = join(fullPath, \"index.js\");\n\n\t\t\tlet commandFile = \"\";\n\t\t\tif (await exists(indexFile)) commandFile = indexFile;\n\t\t\telse if (await exists(indexJs)) commandFile = indexJs;\n\t\t\telse continue;\n\n\t\t\tconst command = (await this.importFile<Command>(commandFile)) as\n\t\t\t\t| SlashCommand\n\t\t\t\t| ContextMenuCommand\n\t\t\t\t| null;\n\t\t\tif (!command || !command.active || !(\"data\" in command)) continue;\n\n\t\t\tif (command.context === \"SlashCommand\" && \"addSubcommand\" in command.data) {\n\t\t\t\tconst subcommandFiles = (await fs.readdir(fullPath)).filter(\n\t\t\t\t\tfile =>\n\t\t\t\t\t\t(file.endsWith(\".ts\") || file.endsWith(\".js\")) &&\n\t\t\t\t\t\t!file.startsWith(\"index.\") &&\n\t\t\t\t\t\t!file.endsWith(\".d.ts\")\n\t\t\t\t);\n\n\t\t\t\tfor (const file of subcommandFiles) {\n\t\t\t\t\tconst subcommand = await this.importFile<SlashSubcommand>(join(fullPath, file));\n\t\t\t\t\tif (!subcommand) continue;\n\t\t\t\t\tif (!subcommand.data.name || !(subcommand.data instanceof SlashCommandSubcommandBuilder))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!command.subcommands) command.subcommands = new Collection<string, SlashSubcommand>();\n\t\t\t\t\tcommand.subcommands.set(subcommand.data.name, subcommand);\n\t\t\t\t\tcommand.data.addSubcommand(subcommand.data);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.items.set(command.data.name, command);\n\t\t}\n\n\t\treturn this;\n\t}\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
2
|
import '../../shared/typings/registry.js';
|
|
3
|
-
export { a as default } from '../../index-
|
|
3
|
+
export { a as default } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import '../../shared/typings/permissions.js';
|
|
5
5
|
import '../../shared/typings/client.js';
|
|
6
6
|
import '../builders/util.builders.js';
|
|
@@ -24,7 +24,7 @@ class ComponentRegistry extends BaseRegistry {
|
|
|
24
24
|
}
|
|
25
25
|
if (entry.isFile() && entry.name.endsWith(".js")) {
|
|
26
26
|
const event = await this.importFile(fullPath);
|
|
27
|
-
if (!event) continue;
|
|
27
|
+
if (!event || !("component" in event)) continue;
|
|
28
28
|
if (!(event.customId || event.customIdData)) {
|
|
29
29
|
console.error(`Component from ${entry.name} does not return customId nor customIdData!`);
|
|
30
30
|
continue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/registry/component.registry.ts"],"names":["fs"],"mappings":";;;;;;AAcA,MAAO,0BAAwC,YAAA,CAAwB;AAAA,EAC5D,KAAA,GAAQ,IAAI,UAAA,EAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASpD,MAAM,KAAK,SAAA,GAAoB,eAAA,CAAgB,KAAK,IAAA,CAAK,KAAA,EAAO,YAAY,CAAC,CAAA,EAAkB;AAC9F,IAAA,IAAI,CAAE,MAAM,MAAA,CAAO,SAAS,GAAI,OAAO,IAAA;AAEvC,IAAA,MAAM,OAAA,GAAU,MAAMA,QAAA,CAAG,OAAA,CAAQ,WAAW,EAAE,aAAA,EAAe,MAAM,CAAA;AACnE,IAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC5B,MAAA,MAAM,QAAA,GAAW,IAAA,CAAK,SAAA,EAA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KAAA,IAAS,EAAE,WAAA,IAAe,KAAA,CAAA,EAAQ;AAEvC,QAAA,IAAI,EAAE,KAAA,CAAM,QAAA,IAAY,KAAA,CAAM,YAAA,CAAA,EAAe;AAC5C,UAAA,OAAA,CAAQ,KAAA,CAAM,CAAA,eAAA,EAAkB,KAAA,CAAM,IAAI,CAAA,2CAAA,CAA6C,CAAA;AACvF,UAAA;AAAA,QACD;AAEA,QAAA,IAAA,CAAK,MAAM,GAAA,CAAK,KAAA,CAAM,QAAA,IAAY,KAAA,CAAM,cAAyB,KAAK,CAAA;AAAA,MACvE;AAAA,IACD;AAEA,IAAA,OAAO,IAAA;AAAA,EACR;AACD","file":"component.registry.js","sourcesContent":["import { Collection } from \"discord.js\";\nimport { BaseRegistry, Component } from \"src/shared/typings/index.js\";\nimport { exists, resolveUserPath } from \"src/shared/utility/functions.js\";\nimport { promises as fs } from \"fs\";\nimport path, { join } from \"node:path\";\n\n/**\n * Registry to load and get all components.\n *\n * @export\n * @class ComponentRegistry\n * @typedef {ComponentRegistry}\n * @extends {BaseRegistry<Component>}\n */\nexport default class ComponentRegistry extends BaseRegistry<Component> {\n\tprotected items = new Collection<string, Component>();\n\n\t/**\n\t * Load all components.\n\t *\n\t * @async\n\t * @param {string} [directory=getCorePath({ coreDirectory: \"components\" })]\n\t * @returns {Promise<this>}\n\t */\n\tasync load(directory: string = resolveUserPath(path.join(\"src\", \"components\"))): Promise<this> {\n\t\tif (!(await exists(directory))) return this;\n\n\t\tconst entries = await fs.readdir(directory, { withFileTypes: true });\n\t\tfor (const entry of entries) {\n\t\t\tconst fullPath = join(directory, entry.name);\n\n\t\t\tif (entry.isDirectory()) {\n\t\t\t\tawait this.load(fullPath);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (entry.isFile() && entry.name.endsWith(\".js\")) {\n\t\t\t\tconst event = await this.importFile<Component>(fullPath);\n\t\t\t\tif (!event || !(\"component\" in event)) continue;\n\n\t\t\t\tif (!(event.customId || event.customIdData)) {\n\t\t\t\t\tconsole.error(`Component from ${entry.name} does not return customId nor customIdData!`);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tthis.items.set((event.customId || event.customIdData) as string, event);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
2
|
import '../../shared/typings/registry.js';
|
|
3
|
-
export { E as default } from '../../index-
|
|
3
|
+
export { E as default } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import '../../shared/typings/permissions.js';
|
|
5
5
|
import '../../shared/typings/client.js';
|
|
6
6
|
import '../builders/util.builders.js';
|
|
@@ -45,7 +45,7 @@ class EventRegistry extends BaseRegistry {
|
|
|
45
45
|
}
|
|
46
46
|
if (entry.isFile() && entry.name.endsWith(".js")) {
|
|
47
47
|
const event = await this.importFile(fullPath);
|
|
48
|
-
if (!event) continue;
|
|
48
|
+
if (!event || !("name" in event && "execute" in event)) continue;
|
|
49
49
|
this.items.set(event.name, event);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/registry/event.registry.ts"],"names":["fs"],"mappings":";;;;;;AAeA,MAAO,sBAAoC,YAAA,CAAoB;AAAA,EACpD,KAAA,GAAQ,IAAI,UAAA,EAA0B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAShD,MAAgB,gBAAA,GAAmB;AAClC,IAAA,MAAM,SAAA,GAAY,WAAA,CAAY,EAAE,aAAA,EAAe,eAAe,CAAA;AAC9D,IAAA,IAAI,CAAC,SAAA,EAAW;AAEhB,IAAA,MAAM,OAAA,GAAU,MAAMA,QAAA,CAAG,OAAA,CAAQ,WAAW,EAAE,aAAA,EAAe,MAAM,CAAA;AACnE,IAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC5B,MAAA,MAAM,QAAA,GAAW,IAAA,CAAK,SAAA,EAAW,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CorePath, resolveUserPath } from \"src/shared/utility/functions.js\";\nimport { BaseRegistry, Event } from \"src/shared/typings/index.js\";\nimport { promises as fs } from \"fs\";\nimport path, { join } from \"node:path\";\nimport TriviousClient from \"../client/trivious.client.js\";\n\n/**\n * Registry to load, get and bind events.\n *\n * @export\n * @class EventRegistry\n * @typedef {EventRegistry}\n * @extends {BaseRegistry<Event>}\n */\nexport default class EventRegistry extends BaseRegistry<Event> {\n\tprotected items = new Collection<string, Event>();\n\n\t/**\n\t * Load all preset events, can be overridden by user-provided events.\n\t *\n\t * @async\n\t * @protected\n\t * @returns {Promise<this>}\n\t */\n\tprotected async loadPresetEvents() {\n\t\tconst directory = getCorePath({ coreDirectory: \"core/events\" });\n\t\tif (!directory) return;\n\n\t\tconst entries = await fs.readdir(directory, { withFileTypes: true });\n\t\tfor (const entry of entries) {\n\t\t\tconst fullPath = join(directory, entry.name);\n\t\t\tif (!entry.isFile() || !entry.name.endsWith(\".js\")) continue;\n\n\t\t\tconst event = await this.importFile<Event>(fullPath);\n\t\t\tif (!event) continue;\n\n\t\t\tif (this.items.has(event.name)) continue;\n\t\t\tthis.items.set(event.name, event);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Load all events.\n\t *\n\t * @async\n\t * @param {string} [directory=getCorePath({ coreDirectory: \"events\" })]\n\t * @returns {Promise<this>}\n\t */\n\tasync load(directory: string = resolveUserPath(path.join(\"src\", \"events\"))): Promise<this> {\n\t\tif (!(await exists(directory))) return this;\n\n\t\tconst entries = await fs.readdir(directory, { withFileTypes: true });\n\t\tfor (const entry of entries) {\n\t\t\tconst fullPath = join(directory, entry.name);\n\n\t\t\tif (entry.isDirectory()) {\n\t\t\t\tawait this.load(fullPath);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (entry.isFile() && entry.name.endsWith(\".js\")) {\n\t\t\t\tconst event = await this.importFile<Event>(fullPath);\n\t\t\t\tif (!event || !(\"name\" in event && \"execute\" in event)) continue;\n\n\t\t\t\tthis.items.set(event.name, event);\n\t\t\t}\n\t\t}\n\n\t\tawait this.loadPresetEvents();\n\t\treturn this;\n\t}\n\n\t/**\n\t * Bind loaded events to their client events respectively.\n\t *\n\t * @param {TriviousClient} client\n\t */\n\tbind(client: TriviousClient) {\n\t\tfor (const event of this.items.values()) {\n\t\t\tconst handler = (...args: ClientEvents[typeof event.name]) =>\n\t\t\t\tvoid event.execute(client, ...args);\n\n\t\t\tif (event.once) client.once(event.name, handler);\n\t\t\telse client.on(event.name, handler);\n\t\t}\n\t}\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TriviousClientOptions } from '../../shared/typings/client.js';
|
|
2
|
-
import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, T as TriviousClient } from '../../index-
|
|
2
|
+
import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, T as TriviousClient } from '../../index-ddJZHFmz.js';
|
|
3
3
|
import 'discord.js';
|
|
4
4
|
import '../../shared/typings/permissions.js';
|
|
5
5
|
import '../../shared/typings/registry.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
2
|
import '../../shared/typings/registry.js';
|
|
3
|
-
export { M as default } from '../../index-
|
|
3
|
+
export { M as default } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import '../../shared/typings/permissions.js';
|
|
5
5
|
import '../../shared/typings/client.js';
|
|
6
6
|
import '../builders/util.builders.js';
|
|
@@ -26,7 +26,7 @@ class ModuleRegistry extends BaseRegistry {
|
|
|
26
26
|
}
|
|
27
27
|
if (entry.isFile() && entry.name.endsWith(".js")) {
|
|
28
28
|
const moduleEvent = await this.importFile(fullPath);
|
|
29
|
-
if (!moduleEvent) continue;
|
|
29
|
+
if (!moduleEvent || !("events" in moduleEvent && "name" in moduleEvent)) continue;
|
|
30
30
|
this.items.set(moduleEvent.name, moduleEvent);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -39,7 +39,6 @@ class ModuleRegistry extends BaseRegistry {
|
|
|
39
39
|
*/
|
|
40
40
|
bind(client) {
|
|
41
41
|
for (const mod of this.items.values()) {
|
|
42
|
-
if (!("events" in mod && "name" in mod)) continue;
|
|
43
42
|
for (const [moduleName, handler] of Object.entries(mod.events)) {
|
|
44
43
|
if (typeof handler !== "function") continue;
|
|
45
44
|
const listener = (...args) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/registry/module.registry.ts"],"names":["fs"],"mappings":";;;;;;AAeA,MAAO,uBAAqC,YAAA,CAAqB;AAAA,EACtD,KAAA,GAAQ,IAAI,UAAA,EAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASjD,MAAM,KAAK,SAAA,GAAoB,eAAA,CAAgB,KAAK,IAAA,CAAK,KAAA,EAAO,SAAS,CAAC,CAAA,EAAkB;AAC3F,IAAA,IAAI,CAAE,MAAM,MAAA,CAAO,SAAS,CAAA,EAAI;AAC/B,MAAA,OAAO,IAAA;AAAA,IACR;AAEA,IAAA,MAAM,OAAA,GAAU,MAAMA,QAAA,CAAG,OAAA,CAAQ,WAAW,EAAE,aAAA,EAAe,MAAM,CAAA;AACnE,IAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC5B,MAAA,MAAM,QAAA,GAAW,IAAA,CAAK,SAAA,EAAW,KAAA,CAAM,IAAI,CAAA;AAE3C,MAAA,IAAI,KAAA,CAAM,aAAY,EAAG;AACxB,QAAA,MAAM,IAAA,CAAK,KAAK,QAAQ,CAAA;AACxB,QAAA;AAAA,MACD;AAEA,MAAA,IAAI,MAAM,MAAA,EAAO,IAAK,MAAM,IAAA,CAAK,QAAA,CAAS,KAAK,CAAA,EAAG;AACjD,QAAA,MAAM,WAAA,GAAc,MAAM,IAAA,CAAK,UAAA,CAAmB,QAAQ,CAAA;AAC1D,QAAA,IAAI,CAAC,WAAA,
|
|
1
|
+
{"version":3,"sources":["../../../src/core/registry/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G;AACtC,MAAA,KAAA,MAAW,CAAC,YAAY,OAAO,CAAA,IAAK,OAAO,OAAA,CAAQ,GAAA,CAAI,MAAO,CAAA,EAAG;AAChE,QAAA,IAAI,OAAO,YAAY,UAAA,EAAY;AAEnC,QAAA,MAAM,QAAA,GAAW,IAAI,IAAA,KAAoB;AACxC,UAAA,KAAM,OAAA,CAAgE,MAAA,EAAQ,GAAG,IAAI,CAAA;AAAA,QACtF,CAAA;AAEA,QAAC,MAAA,CAAO,EAAA,CAAW,UAAA,EAAY,QAAQ,CAAA;AAAA,MACxC;AAAA,IACD;AAAA,EACD;AACD","file":"module.registry.js","sourcesContent":["import { Collection } from \"discord.js\";\nimport { exists, resolveUserPath } from \"src/shared/utility/functions.js\";\nimport { BaseRegistry, Module } from \"src/shared/typings/index.js\";\nimport { promises as fs } from \"fs\";\nimport path, { join } from \"node:path\";\nimport TriviousClient from \"../client/trivious.client.js\";\n\n/**\n * Registry to load, get and bind modules.\n *\n * @export\n * @class ModuleRegistry\n * @typedef {ModuleRegistry}\n * @extends {BaseRegistry<Module>}\n */\nexport default class ModuleRegistry extends BaseRegistry<Module> {\n\tprotected items = new Collection<string, Module>();\n\n\t/**\n\t * Load all modules.\n\t *\n\t * @async\n\t * @param {string} [directory=getCorePath({ coreDirectory: \"module\" })]\n\t * @returns {Promise<this>}\n\t */\n\tasync load(directory: string = resolveUserPath(path.join(\"src\", \"modules\"))): Promise<this> {\n\t\tif (!(await exists(directory))) {\n\t\t\treturn this;\n\t\t}\n\n\t\tconst entries = await fs.readdir(directory, { withFileTypes: true });\n\t\tfor (const entry of entries) {\n\t\t\tconst fullPath = join(directory, entry.name);\n\n\t\t\tif (entry.isDirectory()) {\n\t\t\t\tawait this.load(fullPath);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (entry.isFile() && entry.name.endsWith(\".js\")) {\n\t\t\t\tconst moduleEvent = await this.importFile<Module>(fullPath);\n\t\t\t\tif (!moduleEvent || !(\"events\" in moduleEvent && \"name\" in moduleEvent)) continue;\n\n\t\t\t\tthis.items.set(moduleEvent.name, moduleEvent);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Bind all loaded modules to their client event respectively.\n\t *\n\t * @param {TriviousClient} client\n\t */\n\tbind(client: TriviousClient) {\n\t\tfor (const mod of this.items.values()) {\n\t\t\tfor (const [moduleName, handler] of Object.entries(mod.events!)) {\n\t\t\t\tif (typeof handler !== \"function\") continue;\n\n\t\t\t\tconst listener = (...args: unknown[]) => {\n\t\t\t\t\tvoid (handler as (client: TriviousClient, ...args: unknown[]) => any)(client, ...args);\n\t\t\t\t};\n\n\t\t\t\t(client.on as any)(moduleName, listener);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PermissionLevel } from './shared/typings/permissions.js';
|
|
2
2
|
import { BaseRegistry } from './shared/typings/registry.js';
|
|
3
3
|
import { TriviousClientOptions } from './shared/typings/client.js';
|
|
4
|
-
import { AnySelectMenuInteraction, CacheType, ButtonInteraction as ButtonInteraction$1, ModalSubmitInteraction as ModalSubmitInteraction$1, SlashCommandBuilder, Collection, SlashCommandSubcommandBuilder, ContextMenuCommandBuilder, MessageContextMenuCommandInteraction, UserContextMenuCommandInteraction, ClientEvents, Client, Interaction, MessagePayload, InteractionEditReplyOptions, InteractionReplyOptions, ChatInputCommandInteraction as ChatInputCommandInteraction$1, GuildMember, StringSelectMenuInteraction as StringSelectMenuInteraction$1, ContextMenuCommandInteraction as ContextMenuCommandInteraction$1 } from 'discord.js';
|
|
4
|
+
import { AnySelectMenuInteraction, CacheType, ButtonInteraction as ButtonInteraction$1, ModalSubmitInteraction as ModalSubmitInteraction$1, SlashCommandBuilder, SlashCommandOptionsOnlyBuilder, Collection, SlashCommandSubcommandBuilder, ContextMenuCommandBuilder, MessageContextMenuCommandInteraction, UserContextMenuCommandInteraction, ClientEvents, Client, Interaction, MessagePayload, InteractionEditReplyOptions, InteractionReplyOptions, ChatInputCommandInteraction as ChatInputCommandInteraction$1, GuildMember, StringSelectMenuInteraction as StringSelectMenuInteraction$1, ContextMenuCommandInteraction as ContextMenuCommandInteraction$1 } from 'discord.js';
|
|
5
5
|
import './core/builders/util.builders.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -89,7 +89,7 @@ interface Command {
|
|
|
89
89
|
*/
|
|
90
90
|
interface SlashCommand extends Command {
|
|
91
91
|
readonly context: "SlashCommand";
|
|
92
|
-
readonly data: SlashCommandBuilder;
|
|
92
|
+
readonly data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder;
|
|
93
93
|
subcommands?: Collection<string, Command>;
|
|
94
94
|
readonly run?: (client: TriviousClient, interaction: ChatInputCommandInteraction) => Promise<void>;
|
|
95
95
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
|
-
export { B as ButtonInteraction, t as ChatInputCommandInteraction, g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, C as CommandRegistry, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, i as ContextMenuCommand, x as ContextMenuCommandInteraction, f as CustomIdConstructOptions, m as Event, w as ModalSubmitInteraction, n as Module, S as SlashCommand, h as SlashSubcommand, u as StringSelectMenuInteraction, T as TriviousClient, r as constructCustomId, q as deconstructCustomId, s as getPermissionLevel, p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from './index-
|
|
2
|
+
export { B as ButtonInteraction, t as ChatInputCommandInteraction, g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, C as CommandRegistry, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, i as ContextMenuCommand, x as ContextMenuCommandInteraction, f as CustomIdConstructOptions, m as Event, w as ModalSubmitInteraction, n as Module, S as SlashCommand, h as SlashSubcommand, u as StringSelectMenuInteraction, T as TriviousClient, r as constructCustomId, q as deconstructCustomId, s as getPermissionLevel, p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from './index-ddJZHFmz.js';
|
|
3
3
|
export { createActionRow, createEmbed } from './core/builders/util.builders.js';
|
|
4
4
|
export { PermissionLevel } from './shared/typings/permissions.js';
|
|
5
5
|
export { BaseRegistry } from './shared/typings/registry.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './permissions.js';
|
|
2
2
|
import 'discord.js';
|
|
3
|
-
export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, i as ContextMenuCommand, S as SlashCommand, h as SlashSubcommand } from '../../index-
|
|
3
|
+
export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, i as ContextMenuCommand, S as SlashCommand, h as SlashSubcommand } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import './registry.js';
|
|
5
5
|
import './client.js';
|
|
6
6
|
import '../../core/builders/util.builders.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
2
|
import './permissions.js';
|
|
3
|
-
export { b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, f as CustomIdConstructOptions } from '../../index-
|
|
3
|
+
export { b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, f as CustomIdConstructOptions } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import './registry.js';
|
|
5
5
|
import './client.js';
|
|
6
6
|
import '../../core/builders/util.builders.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PermissionLevel } from './permissions.js';
|
|
2
2
|
export { BaseRegistry } from './registry.js';
|
|
3
|
-
export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as ContextMenuCommand, f as CustomIdConstructOptions, m as Event, n as Module, S as SlashCommand, h as SlashSubcommand } from '../../index-
|
|
3
|
+
export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as ContextMenuCommand, f as CustomIdConstructOptions, m as Event, n as Module, S as SlashCommand, h as SlashSubcommand } from '../../index-ddJZHFmz.js';
|
|
4
4
|
export { TriviousClientOptions } from './client.js';
|
|
5
5
|
import 'discord.js';
|
|
6
6
|
import '../../core/builders/util.builders.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { r as constructCustomId, q as deconstructCustomId } from '../../index-
|
|
1
|
+
export { r as constructCustomId, q as deconstructCustomId } from '../../index-ddJZHFmz.js';
|
|
2
2
|
import '../typings/permissions.js';
|
|
3
3
|
import '../typings/registry.js';
|
|
4
4
|
import 'discord.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TriviousClient } from '../../index-
|
|
1
|
+
import { T as TriviousClient } from '../../index-ddJZHFmz.js';
|
|
2
2
|
import { PermissionLevel } from '../typings/permissions.js';
|
|
3
3
|
import { User, GuildMember, RESTPostAPIApplicationCommandsJSONBody } from 'discord.js';
|
|
4
4
|
import '../typings/registry.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'discord.js';
|
|
2
2
|
import '../typings/permissions.js';
|
|
3
|
-
export { s as getPermissionLevel } from '../../index-
|
|
3
|
+
export { s as getPermissionLevel } from '../../index-ddJZHFmz.js';
|
|
4
4
|
import '../typings/registry.js';
|
|
5
5
|
import '../typings/client.js';
|
|
6
6
|
import '../../core/builders/util.builders.js';
|