trivious 2.3.6 → 2.3.7

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.
@@ -1,4 +1,4 @@
1
- import { T as TriviousClient } from '../../modules.types-D-tuJArP.js';
1
+ import { T as TriviousClient } from '../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import './client.types.js';
4
4
  import '../permissions/permissions.types.js';
@@ -1,5 +1,5 @@
1
+ export { T as default } from '../../modules.types-DLv4ITOW.js';
1
2
  import 'discord.js';
2
3
  import './client.types.js';
3
- export { T as default } from '../../modules.types-D-tuJArP.js';
4
4
  import './logger.js';
5
5
  import '../permissions/permissions.types.js';
@@ -6,6 +6,7 @@ import commandDeploy from "./deploy.client.js";
6
6
  import { Logger } from "./logger.js";
7
7
  class TriviousClient extends Client {
8
8
  trivious;
9
+ registries = registries;
9
10
  stores;
10
11
  logger;
11
12
  constructor(options) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/features/client/trivious.client.ts"],"sourcesContent":["import registries from \"@shared/registries.js\";\nimport { Client, Collection } from \"discord.js\";\nimport structure from \"../structure/index.structure.js\";\n\nimport {\n\tComponent,\n\tContextCommandData,\n\tEvent,\n\tModule,\n\tSlashCommandData,\n\tTriviousClientOptions,\n} from \"@typings\";\nimport { TriviousError } from \"@utility/errors.js\";\nimport commandDeploy from \"./deploy.client.js\";\nimport { Logger } from \"./logger.js\";\n\nexport default class TriviousClient extends Client {\n\ttrivious: TriviousClientOptions;\n\treadonly stores: {\n\t\tcommands: {\n\t\t\tchatInput: Collection<string, SlashCommandData>;\n\t\t\tcontext: Collection<string, ContextCommandData>;\n\t\t};\n\t\tcomponents: Collection<string, Component>;\n\t\tevents: Collection<string, Event>;\n\t\tmodules: Collection<string, Module>;\n\t};\n\tlogger: Logger;\n\n\tconstructor(options: TriviousClientOptions) {\n\t\tsuper(options);\n\t\tthis.trivious = options;\n\t\tthis.logger = new Logger(\"Trivious\", !!options.debug);\n\n\t\tthis.stores = {\n\t\t\tcommands: {\n\t\t\t\tchatInput: new Collection(),\n\t\t\t\tcontext: new Collection(),\n\t\t\t},\n\t\t\tcomponents: new Collection(),\n\t\t\tevents: new Collection(),\n\t\t\tmodules: new Collection(),\n\t\t};\n\t}\n\n\t/**\n\t * Register, deploy and log into the bot.\n\t *\n\t * @throws {TriviousError} If invalid bot token\n\t */\n\tasync start() {\n\t\tconst token = process.env[this.trivious.credentials.tokenReference];\n\t\tif (!token) {\n\t\t\tthrow new TriviousError(\n\t\t\t\t`Bot token environment variable '${this.trivious.credentials.tokenReference}' does not exist!`,\n\t\t\t\t\"Null environment variable\"\n\t\t\t);\n\t\t}\n\n\t\tawait this.register();\n\t\tawait this.deploy();\n\n\t\ttry {\n\t\t\tawait registries.events.bind(this);\n\t\t\tawait registries.modules.bind(this);\n\t\t} catch (err: any) {\n\t\t\tconst error = new TriviousError(err.message, \"Error during events and modules binds\");\n\t\t\tconsole.error(error);\n\t\t}\n\n\t\tawait this.login(token);\n\t}\n\n\tasync register() {\n\t\tconst dir = structure.resolveRelativePath(this.trivious.corePath);\n\n\t\tawait registries.events.register(this, dir);\n\t\tawait registries.modules.register(this, dir);\n\t\tawait registries.commands.register(this, dir);\n\t\tawait registries.components.register(this, dir);\n\t}\n\n\tasync deploy() {\n\t\tawait commandDeploy(this);\n\t}\n}\n"],"mappings":"AAAA,OAAO,gBAAgB;AACvB,SAAS,QAAQ,kBAAkB;AACnC,OAAO,eAAe;AAUtB,SAAS,qBAAqB;AAC9B,OAAO,mBAAmB;AAC1B,SAAS,cAAc;AAEvB,MAAO,uBAAqC,OAAO;AAAA,EAClD;AAAA,EACS;AAAA,EAST;AAAA,EAEA,YAAY,SAAgC;AAC3C,UAAM,OAAO;AACb,SAAK,WAAW;AAChB,SAAK,SAAS,IAAI,OAAO,YAAY,CAAC,CAAC,QAAQ,KAAK;AAEpD,SAAK,SAAS;AAAA,MACb,UAAU;AAAA,QACT,WAAW,IAAI,WAAW;AAAA,QAC1B,SAAS,IAAI,WAAW;AAAA,MACzB;AAAA,MACA,YAAY,IAAI,WAAW;AAAA,MAC3B,QAAQ,IAAI,WAAW;AAAA,MACvB,SAAS,IAAI,WAAW;AAAA,IACzB;AAAA,EACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,QAAQ;AACb,UAAM,QAAQ,QAAQ,IAAI,KAAK,SAAS,YAAY,cAAc;AAClE,QAAI,CAAC,OAAO;AACX,YAAM,IAAI;AAAA,QACT,mCAAmC,KAAK,SAAS,YAAY,cAAc;AAAA,QAC3E;AAAA,MACD;AAAA,IACD;AAEA,UAAM,KAAK,SAAS;AACpB,UAAM,KAAK,OAAO;AAElB,QAAI;AACH,YAAM,WAAW,OAAO,KAAK,IAAI;AACjC,YAAM,WAAW,QAAQ,KAAK,IAAI;AAAA,IACnC,SAAS,KAAU;AAClB,YAAM,QAAQ,IAAI,cAAc,IAAI,SAAS,uCAAuC;AACpF,cAAQ,MAAM,KAAK;AAAA,IACpB;AAEA,UAAM,KAAK,MAAM,KAAK;AAAA,EACvB;AAAA,EAEA,MAAM,WAAW;AAChB,UAAM,MAAM,UAAU,oBAAoB,KAAK,SAAS,QAAQ;AAEhE,UAAM,WAAW,OAAO,SAAS,MAAM,GAAG;AAC1C,UAAM,WAAW,QAAQ,SAAS,MAAM,GAAG;AAC3C,UAAM,WAAW,SAAS,SAAS,MAAM,GAAG;AAC5C,UAAM,WAAW,WAAW,SAAS,MAAM,GAAG;AAAA,EAC/C;AAAA,EAEA,MAAM,SAAS;AACd,UAAM,cAAc,IAAI;AAAA,EACzB;AACD;","names":[]}
1
+ {"version":3,"sources":["../../../src/features/client/trivious.client.ts"],"sourcesContent":["import registries from \"@shared/registries.js\";\nimport { Client, Collection } from \"discord.js\";\nimport structure from \"../structure/index.structure.js\";\n\nimport {\n\tComponent,\n\tContextCommandData,\n\tEvent,\n\tModule,\n\tSlashCommandData,\n\tTriviousClientOptions,\n} from \"@typings\";\nimport { TriviousError } from \"@utility/errors.js\";\nimport commandDeploy from \"./deploy.client.js\";\nimport { Logger } from \"./logger.js\";\n\nexport default class TriviousClient extends Client {\n\ttrivious: TriviousClientOptions;\n\treadonly registries = registries;\n\treadonly stores: {\n\t\tcommands: {\n\t\t\tchatInput: Collection<string, SlashCommandData>;\n\t\t\tcontext: Collection<string, ContextCommandData>;\n\t\t};\n\t\tcomponents: Collection<string, Component>;\n\t\tevents: Collection<string, Event>;\n\t\tmodules: Collection<string, Module>;\n\t};\n\tlogger: Logger;\n\n\tconstructor(options: TriviousClientOptions) {\n\t\tsuper(options);\n\t\tthis.trivious = options;\n\t\tthis.logger = new Logger(\"Trivious\", !!options.debug);\n\n\t\tthis.stores = {\n\t\t\tcommands: {\n\t\t\t\tchatInput: new Collection(),\n\t\t\t\tcontext: new Collection(),\n\t\t\t},\n\t\t\tcomponents: new Collection(),\n\t\t\tevents: new Collection(),\n\t\t\tmodules: new Collection(),\n\t\t};\n\t}\n\n\t/**\n\t * Register, deploy and log into the bot.\n\t *\n\t * @throws {TriviousError} If invalid bot token\n\t */\n\tasync start() {\n\t\tconst token = process.env[this.trivious.credentials.tokenReference];\n\t\tif (!token) {\n\t\t\tthrow new TriviousError(\n\t\t\t\t`Bot token environment variable '${this.trivious.credentials.tokenReference}' does not exist!`,\n\t\t\t\t\"Null environment variable\"\n\t\t\t);\n\t\t}\n\n\t\tawait this.register();\n\t\tawait this.deploy();\n\n\t\ttry {\n\t\t\tawait registries.events.bind(this);\n\t\t\tawait registries.modules.bind(this);\n\t\t} catch (err: any) {\n\t\t\tconst error = new TriviousError(err.message, \"Error during events and modules binds\");\n\t\t\tconsole.error(error);\n\t\t}\n\n\t\tawait this.login(token);\n\t}\n\n\tasync register() {\n\t\tconst dir = structure.resolveRelativePath(this.trivious.corePath);\n\t\tawait registries.events.register(this, dir);\n\t\tawait registries.modules.register(this, dir);\n\t\tawait registries.commands.register(this, dir);\n\t\tawait registries.components.register(this, dir);\n\t}\n\n\tasync deploy() {\n\t\tawait commandDeploy(this);\n\t}\n}\n"],"mappings":"AAAA,OAAO,gBAAgB;AACvB,SAAS,QAAQ,kBAAkB;AACnC,OAAO,eAAe;AAUtB,SAAS,qBAAqB;AAC9B,OAAO,mBAAmB;AAC1B,SAAS,cAAc;AAEvB,MAAO,uBAAqC,OAAO;AAAA,EAClD;AAAA,EACS,aAAa;AAAA,EACb;AAAA,EAST;AAAA,EAEA,YAAY,SAAgC;AAC3C,UAAM,OAAO;AACb,SAAK,WAAW;AAChB,SAAK,SAAS,IAAI,OAAO,YAAY,CAAC,CAAC,QAAQ,KAAK;AAEpD,SAAK,SAAS;AAAA,MACb,UAAU;AAAA,QACT,WAAW,IAAI,WAAW;AAAA,QAC1B,SAAS,IAAI,WAAW;AAAA,MACzB;AAAA,MACA,YAAY,IAAI,WAAW;AAAA,MAC3B,QAAQ,IAAI,WAAW;AAAA,MACvB,SAAS,IAAI,WAAW;AAAA,IACzB;AAAA,EACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,QAAQ;AACb,UAAM,QAAQ,QAAQ,IAAI,KAAK,SAAS,YAAY,cAAc;AAClE,QAAI,CAAC,OAAO;AACX,YAAM,IAAI;AAAA,QACT,mCAAmC,KAAK,SAAS,YAAY,cAAc;AAAA,QAC3E;AAAA,MACD;AAAA,IACD;AAEA,UAAM,KAAK,SAAS;AACpB,UAAM,KAAK,OAAO;AAElB,QAAI;AACH,YAAM,WAAW,OAAO,KAAK,IAAI;AACjC,YAAM,WAAW,QAAQ,KAAK,IAAI;AAAA,IACnC,SAAS,KAAU;AAClB,YAAM,QAAQ,IAAI,cAAc,IAAI,SAAS,uCAAuC;AACpF,cAAQ,MAAM,KAAK;AAAA,IACpB;AAEA,UAAM,KAAK,MAAM,KAAK;AAAA,EACvB;AAAA,EAEA,MAAM,WAAW;AAChB,UAAM,MAAM,UAAU,oBAAoB,KAAK,SAAS,QAAQ;AAChE,UAAM,WAAW,OAAO,SAAS,MAAM,GAAG;AAC1C,UAAM,WAAW,QAAQ,SAAS,MAAM,GAAG;AAC3C,UAAM,WAAW,SAAS,SAAS,MAAM,GAAG;AAC5C,UAAM,WAAW,WAAW,SAAS,MAAM,GAAG;AAAA,EAC/C;AAAA,EAEA,MAAM,SAAS;AACd,UAAM,cAAc,IAAI;AAAA,EACzB;AACD;","names":[]}
@@ -1,4 +1,4 @@
1
- import { j as ContextCommandData, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData } from '../../modules.types-D-tuJArP.js';
1
+ import { j as ContextCommandData, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData } from '../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { B as BaseChatInputCommandData, a as BaseCommandData, C as ChatInputCommandContext, b as CollatedCommandData, c as CommandFlags, d as CommandFunction, e as CommandSetData, j as ContextCommandData, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData } from '../../modules.types-D-tuJArP.js';
2
+ export { B as BaseChatInputCommandData, a as BaseCommandData, C as ChatInputCommandContext, b as CollatedCommandData, c as CommandFlags, d as CommandFunction, e as CommandSetData, j as ContextCommandData, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData } from '../../modules.types-DLv4ITOW.js';
3
3
  import '../permissions/permissions.types.js';
4
4
  import '../client/client.types.js';
5
5
  import '../client/logger.js';
@@ -1,5 +1,5 @@
1
1
  import { ChatInputCommandInteraction, Interaction, CacheType, InteractionReplyOptions, InteractionResponse, InteractionEditReplyOptions, Message, MessagePayload } from 'discord.js';
2
- import { T as TriviousClient, S as SlashCommandData, c as CommandFlags } from '../../modules.types-D-tuJArP.js';
2
+ import { T as TriviousClient, S as SlashCommandData, c as CommandFlags } from '../../modules.types-DLv4ITOW.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
5
5
  import '../client/logger.js';
@@ -1,9 +1,5 @@
1
- import { T as TriviousClient } from '../../modules.types-D-tuJArP.js';
1
+ export { r as default } from '../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
5
5
  import '../client/logger.js';
6
-
7
- declare function registerCommands(client: TriviousClient, directory: string): Promise<void>;
8
-
9
- export { registerCommands as default };
@@ -1,4 +1,4 @@
1
- import { f as Component, g as ComponentContext } from '../../modules.types-D-tuJArP.js';
1
+ import { f as Component, g as ComponentContext } from '../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { f as Component, g as ComponentContext, h as ComponentFlags, i as ComponentInteraction } from '../../modules.types-D-tuJArP.js';
2
+ export { f as Component, g as ComponentContext, h as ComponentFlags, i as ComponentInteraction } from '../../modules.types-DLv4ITOW.js';
3
3
  import '../permissions/permissions.types.js';
4
4
  import '../client/client.types.js';
5
5
  import '../client/logger.js';
@@ -1,9 +1,5 @@
1
- import { T as TriviousClient } from '../../modules.types-D-tuJArP.js';
1
+ export { m as default } from '../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
5
5
  import '../client/logger.js';
6
-
7
- declare function registerComponents(client: TriviousClient, directory: string): Promise<void>;
8
-
9
- export { registerComponents as default };
@@ -1,5 +1,5 @@
1
1
  import '../client/client.types.js';
2
- import { g as ComponentContext } from '../../modules.types-D-tuJArP.js';
2
+ import { g as ComponentContext } from '../../modules.types-DLv4ITOW.js';
3
3
  import '../permissions/permissions.types.js';
4
4
  import 'discord.js';
5
5
  import '../client/logger.js';
@@ -1,7 +1,7 @@
1
1
  import { ComponentCustomId } from './customid.types.js';
2
2
  import '../client/client.types.js';
3
3
  import 'discord.js';
4
- import '../../modules.types-D-tuJArP.js';
4
+ import '../../modules.types-DLv4ITOW.js';
5
5
  import '../permissions/permissions.types.js';
6
6
  import '../client/logger.js';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { E as Event } from '../../modules.types-D-tuJArP.js';
2
+ export { E as Event } from '../../modules.types-DLv4ITOW.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
5
5
  import '../client/logger.js';
@@ -1,4 +1,4 @@
1
- import { T as TriviousClient } from '../../../modules.types-D-tuJArP.js';
1
+ import { T as TriviousClient } from '../../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../../client/client.types.js';
4
4
  import '../../permissions/permissions.types.js';
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../../modules.types-D-tuJArP.js';
2
+ import { T as TriviousClient } from '../../../modules.types-DLv4ITOW.js';
3
3
  import '../../client/client.types.js';
4
4
  import '../../permissions/permissions.types.js';
5
5
  import '../../client/logger.js';
@@ -1,10 +1,5 @@
1
- import { T as TriviousClient } from '../../modules.types-D-tuJArP.js';
1
+ export { o as bindEvents, n as default } from '../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
5
5
  import '../client/logger.js';
6
-
7
- declare function bindEvents(client: TriviousClient): Promise<void>;
8
- declare function registerEvents(client: TriviousClient, directory: string): Promise<void>;
9
-
10
- export { bindEvents, registerEvents as default };
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { M as Module } from '../../modules.types-D-tuJArP.js';
2
+ export { M as Module } from '../../modules.types-DLv4ITOW.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
5
5
  import '../client/logger.js';
@@ -1,10 +1,5 @@
1
- import { T as TriviousClient } from '../../modules.types-D-tuJArP.js';
1
+ export { q as bindModules, p as default } from '../../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../client/client.types.js';
4
4
  import '../permissions/permissions.types.js';
5
5
  import '../client/logger.js';
6
-
7
- declare function bindModules(client: TriviousClient): Promise<void>;
8
- declare function registerModules(client: TriviousClient, directory: string): Promise<void>;
9
-
10
- export { bindModules, registerModules as default };
@@ -1,5 +1,5 @@
1
1
  import { GuildMember, User } from 'discord.js';
2
- import { T as TriviousClient, a as BaseCommandData, f as Component } from '../../modules.types-D-tuJArP.js';
2
+ import { T as TriviousClient, a as BaseCommandData, f as Component } from '../../modules.types-DLv4ITOW.js';
3
3
  import '../client/client.types.js';
4
4
  import './permissions.types.js';
5
5
  import '../client/logger.js';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CommandHashConfiguration, FeatureBasedStructure, TriviousClientCredentials, TriviousClientOptions, TriviousStructure, TypeBasedStructure } from './features/client/client.types.js';
2
- export { B as BaseChatInputCommandData, a as BaseCommandData, C as ChatInputCommandContext, b as CollatedCommandData, c as CommandFlags, d as CommandFunction, e as CommandSetData, f as Component, g as ComponentContext, h as ComponentFlags, i as ComponentInteraction, j as ContextCommandData, E as Event, M as Module, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData, T as TriviousClient } from './modules.types-D-tuJArP.js';
2
+ export { B as BaseChatInputCommandData, a as BaseCommandData, C as ChatInputCommandContext, b as CollatedCommandData, c as CommandFlags, d as CommandFunction, e as CommandSetData, f as Component, g as ComponentContext, h as ComponentFlags, i as ComponentInteraction, j as ContextCommandData, E as Event, M as Module, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData, T as TriviousClient } from './modules.types-DLv4ITOW.js';
3
3
  export { ComponentCustomId, ComponentTag } from './features/customId/customid.types.js';
4
4
  export { CommandPermissionValues } from './features/permissions/permissions.types.js';
5
5
  export { createActionRow, createEmbed } from './features/builders/utility.builders.js';
@@ -3,8 +3,34 @@ import { TriviousClientOptions } from './features/client/client.types.js';
3
3
  import { CommandPermissionValues } from './features/permissions/permissions.types.js';
4
4
  import { Logger } from './features/client/logger.js';
5
5
 
6
+ declare function bindModules(client: TriviousClient): Promise<void>;
7
+ declare function registerModules(client: TriviousClient, directory: string): Promise<void>;
8
+
9
+ declare function bindEvents(client: TriviousClient): Promise<void>;
10
+ declare function registerEvents(client: TriviousClient, directory: string): Promise<void>;
11
+
12
+ declare function registerComponents(client: TriviousClient, directory: string): Promise<void>;
13
+
14
+ declare function registerCommands(client: TriviousClient, directory: string): Promise<void>;
15
+
6
16
  declare class TriviousClient extends Client {
7
17
  trivious: TriviousClientOptions;
18
+ readonly registries: {
19
+ readonly commands: {
20
+ readonly register: typeof registerCommands;
21
+ };
22
+ readonly components: {
23
+ readonly register: typeof registerComponents;
24
+ };
25
+ readonly events: {
26
+ readonly register: typeof registerEvents;
27
+ readonly bind: typeof bindEvents;
28
+ };
29
+ readonly modules: {
30
+ readonly register: typeof registerModules;
31
+ readonly bind: typeof bindModules;
32
+ };
33
+ };
8
34
  readonly stores: {
9
35
  commands: {
10
36
  chatInput: Collection<string, SlashCommandData>;
@@ -153,4 +179,4 @@ interface Module {
153
179
  };
154
180
  }
155
181
 
156
- export { type BaseChatInputCommandData as B, type ChatInputCommandContext as C, type Event as E, type Module as M, type SlashCommandData as S, TriviousClient as T, type BaseCommandData as a, type CollatedCommandData as b, type CommandFlags as c, type CommandFunction as d, type CommandSetData as e, type Component as f, ComponentContext as g, type ComponentFlags as h, type ComponentInteraction as i, type ContextCommandData as j, type SlashSubcommandData as k, type SlashSubcommandGroupData as l };
182
+ export { type BaseChatInputCommandData as B, type ChatInputCommandContext as C, type Event as E, type Module as M, type SlashCommandData as S, TriviousClient as T, type BaseCommandData as a, type CollatedCommandData as b, type CommandFlags as c, type CommandFunction as d, type CommandSetData as e, type Component as f, ComponentContext as g, type ComponentFlags as h, type ComponentInteraction as i, type ContextCommandData as j, type SlashSubcommandData as k, type SlashSubcommandGroupData as l, registerComponents as m, registerEvents as n, bindEvents as o, registerModules as p, bindModules as q, registerCommands as r };
@@ -1,8 +1,4 @@
1
- import registerCommands from '../features/commands/registry.commands.js';
2
- import registerComponents from '../features/components/registry.components.js';
3
- import registerEvents, { bindEvents } from '../features/events/registry.events.js';
4
- import registerModules, { bindModules } from '../features/modules/registry.modules.js';
5
- import '../modules.types-D-tuJArP.js';
1
+ import { r as registerCommands, m as registerComponents, n as registerEvents, o as bindEvents, p as registerModules, q as bindModules } from '../modules.types-DLv4ITOW.js';
6
2
  import 'discord.js';
7
3
  import '../features/client/client.types.js';
8
4
  import '../features/permissions/permissions.types.js';
@@ -1,5 +1,5 @@
1
1
  export { CommandHashConfiguration, FeatureBasedStructure, TriviousClientCredentials, TriviousClientOptions, TriviousStructure, TypeBasedStructure } from '../features/client/client.types.js';
2
- export { B as BaseChatInputCommandData, a as BaseCommandData, C as ChatInputCommandContext, b as CollatedCommandData, c as CommandFlags, d as CommandFunction, e as CommandSetData, f as Component, g as ComponentContext, h as ComponentFlags, i as ComponentInteraction, j as ContextCommandData, E as Event, M as Module, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData, T as TriviousClient } from '../modules.types-D-tuJArP.js';
2
+ export { B as BaseChatInputCommandData, a as BaseCommandData, C as ChatInputCommandContext, b as CollatedCommandData, c as CommandFlags, d as CommandFunction, e as CommandSetData, f as Component, g as ComponentContext, h as ComponentFlags, i as ComponentInteraction, j as ContextCommandData, E as Event, M as Module, S as SlashCommandData, k as SlashSubcommandData, l as SlashSubcommandGroupData, T as TriviousClient } from '../modules.types-DLv4ITOW.js';
3
3
  export { ComponentCustomId, ComponentTag } from '../features/customId/customid.types.js';
4
4
  export { CommandPermissionValues } from '../features/permissions/permissions.types.js';
5
5
  import 'discord.js';
@@ -1,4 +1,4 @@
1
- import { a as BaseCommandData, S as SlashCommandData } from '../modules.types-D-tuJArP.js';
1
+ import { a as BaseCommandData, S as SlashCommandData } from '../modules.types-DLv4ITOW.js';
2
2
  import 'discord.js';
3
3
  import '../features/client/client.types.js';
4
4
  import '../features/permissions/permissions.types.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trivious",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "discord-bot",
@@ -15,6 +15,7 @@
15
15
  "typescript-discord"
16
16
  ],
17
17
  "license": "Apache-2.0",
18
+ "packageManager": "pnpm@11.8.0",
18
19
  "publishConfig": {
19
20
  "access": "public"
20
21
  },
@@ -72,7 +73,7 @@
72
73
  "tsc-alias": "^1.8.16",
73
74
  "tsup": "^8.5.1",
74
75
  "tsx": "^4.22.3",
75
- "typescript": "^5.9.3",
76
+ "typescript": "^6.0.3",
76
77
  "typescript-eslint": "^8.57.0",
77
78
  "vite": "^8.0.14",
78
79
  "vite-tsconfig-paths": "^6.1.1",