trivious 1.5.10 → 1.5.11

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.
Files changed (45) hide show
  1. package/dist/core/client/trivious.client.d.cts +1 -1
  2. package/dist/core/client/trivious.client.d.ts +1 -1
  3. package/dist/core/commands/command.base.d.cts +1 -1
  4. package/dist/core/commands/command.base.d.ts +1 -1
  5. package/dist/core/commands/subcommand.base.cjs +1 -1
  6. package/dist/core/commands/subcommand.base.cjs.map +1 -1
  7. package/dist/core/commands/subcommand.base.d.cts +1 -1
  8. package/dist/core/commands/subcommand.base.d.ts +1 -1
  9. package/dist/core/commands/subcommand.base.js +1 -1
  10. package/dist/core/commands/subcommand.base.js.map +1 -1
  11. package/dist/core/events/clientReady.d.cts +1 -1
  12. package/dist/core/events/clientReady.d.ts +1 -1
  13. package/dist/core/events/interactionCreate.d.cts +1 -1
  14. package/dist/core/events/interactionCreate.d.ts +1 -1
  15. package/dist/core/registry/command.registry.d.cts +1 -1
  16. package/dist/core/registry/command.registry.d.ts +1 -1
  17. package/dist/core/registry/component.registry.d.cts +1 -1
  18. package/dist/core/registry/component.registry.d.ts +1 -1
  19. package/dist/core/registry/event.registry.d.cts +1 -1
  20. package/dist/core/registry/event.registry.d.ts +1 -1
  21. package/dist/core/registry/index.d.cts +1 -1
  22. package/dist/core/registry/index.d.ts +1 -1
  23. package/dist/core/registry/module.registry.d.cts +1 -1
  24. package/dist/core/registry/module.registry.d.ts +1 -1
  25. package/dist/{index-DpQWPMcK.d.ts → index-CfL5mpMG.d.ts} +3 -3
  26. package/dist/{index-C85XsXwx.d.cts → index-DzD1aYla.d.cts} +3 -3
  27. package/dist/index.d.cts +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/shared/typings/client.d.cts +1 -1
  30. package/dist/shared/typings/client.d.ts +1 -1
  31. package/dist/shared/typings/commands.d.cts +1 -1
  32. package/dist/shared/typings/commands.d.ts +1 -1
  33. package/dist/shared/typings/components.d.cts +1 -1
  34. package/dist/shared/typings/components.d.ts +1 -1
  35. package/dist/shared/typings/events.d.cts +1 -1
  36. package/dist/shared/typings/events.d.ts +1 -1
  37. package/dist/shared/typings/index.d.cts +1 -1
  38. package/dist/shared/typings/index.d.ts +1 -1
  39. package/dist/shared/typings/module.d.cts +1 -1
  40. package/dist/shared/typings/module.d.ts +1 -1
  41. package/dist/shared/typings/permissions.d.cts +1 -1
  42. package/dist/shared/typings/permissions.d.ts +1 -1
  43. package/dist/shared/utility/functions.d.cts +1 -1
  44. package/dist/shared/utility/functions.d.ts +1 -1
  45. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export { T as default } from '../../index-C85XsXwx.cjs';
1
+ export { T as default } from '../../index-DzD1aYla.cjs';
2
2
  import 'discord.js';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
- export { T as default } from '../../index-DpQWPMcK.js';
1
+ export { T as default } from '../../index-CfL5mpMG.js';
2
2
  import 'discord.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { l as CommandBuilder, n as ContextMenuBuilder, m as ContextMenuCommand, S as SlashCommand, k as default } from '../../index-C85XsXwx.cjs';
2
+ export { l as CommandBuilder, n as ContextMenuBuilder, m as ContextMenuCommand, S as SlashCommand, k as default } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { l as CommandBuilder, n as ContextMenuBuilder, m as ContextMenuCommand, S as SlashCommand, k as default } from '../../index-DpQWPMcK.js';
2
+ export { l as CommandBuilder, n as ContextMenuBuilder, m as ContextMenuCommand, S as SlashCommand, k as default } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
@@ -56,7 +56,7 @@ class SubcommandBuilder extends discord_js.SlashCommandSubcommandBuilder {
56
56
  * Build the builder.
57
57
  *
58
58
  * @public
59
- * @returns {{ data: SlashCommandSubcommandBuilder; metadata: SubcommandMetadata; }}
59
+ * @returns {{ data: SubcommandBuilder; metadata: SubcommandMetadata; }}
60
60
  */
61
61
  build() {
62
62
  return {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/core/commands/subcommand.base.ts"],"names":["SlashCommandSubcommandBuilder","PermissionLevel"],"mappings":";;;;;;;AAmBO,MAAM,0BAA0BA,wCAAA,CAA8B;AAAA,EAC5D,OAAA,GAAU,IAAA;AAAA,EACV,UAAA,GAAa,KAAA;AAAA,EACb,cAAcC,wBAAA,CAAgB,IAAA;AAAA,EAC9B,eAAA,GAAkB,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQnB,OAAA,GAAgB;AACtB,IAAA,IAAA,CAAK,OAAA,GAAU,KAAA;AACf,IAAA,OAAO,IAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,YAAA,GAAqB;AAC3B,IAAA,IAAA,CAAK,cAAcA,wBAAA,CAAgB,SAAA;AACnC,IAAA,IAAA,CAAK,UAAA,GAAa,IAAA;AAClB,IAAA,OAAO,IAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASO,cAAc,UAAA,EAAmC;AACvD,IAAA,IAAA,CAAK,WAAA,GAAc,UAAA;AACnB,IAAA,OAAO,IAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,iBAAA,GAA0B;AAChC,IAAA,IAAA,CAAK,eAAA,GAAkB,IAAA;AACvB,IAAA,OAAO,IAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,KAAA,GAAQ;AACd,IAAA,OAAO;AAAA,MACN,IAAA,EAAM,IAAA;AAAA,MACN,QAAA,EAAU;AAAA,QACT,QAAQ,IAAA,CAAK,OAAA;AAAA,QACb,WAAW,IAAA,CAAK,UAAA;AAAA,QAChB,YAAY,IAAA,CAAK,WAAA;AAAA,QACjB,gBAAgB,IAAA,CAAK;AAAA;AACtB,KACD;AAAA,EACD;AACD;AAUA,MAAO,UAAA,CAAkC;AAAA,EACxB,IAAA;AAAA,EACA,QAAA;AAAA,EAEN,YAAY,OAAA,EAA4B;AACjD,IAAA,MAAM,EAAE,IAAA,EAAM,QAAA,EAAS,GAAI,QAAQ,KAAA,EAAM;AACzC,IAAA,IAAA,CAAK,IAAA,GAAO,IAAA;AACZ,IAAA,IAAA,CAAK,QAAA,GAAW,QAAA;AAAA,EACjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAyBA,MAAM,KAAA,CACL,WAAA,EACA,OAAA,EACC;AACD,IAAA,IAAI,WAAA,CAAY,OAAA,IAAW,WAAA,CAAY,QAAA,EAAU;AAChD,MAAA,MAAM,WAAA,CAAY,UAAU,OAAsC,CAAA;AAClE,MAAA;AAAA,IACD;AAEA,IAAA,MAAM,UAAA,GAAa,EAAE,GAAG,OAAA,EAAQ;AAChC,IAAA,IAAI,KAAK,QAAA,CAAS,cAAA,EAAgB,UAAA,CAAW,KAAA,GAAQ,CAAC,WAAW,CAAA;AAEjE,IAAA,MAAM,WAAA,CAAY,MAAM,UAAU,CAAA;AAAA,EACnC;AACD","file":"subcommand.base.cjs","sourcesContent":["import {\n\tCacheType,\n\tChatInputCommandInteraction,\n\tInteractionEditReplyOptions,\n\tInteractionReplyOptions,\n\tMessagePayload,\n\tSlashCommandSubcommandBuilder,\n} from \"discord.js\";\nimport { PermissionLevel, SubcommandMetadata } from \"src/shared/typings/index.js\";\nimport { TriviousClient } from \"src/index.js\";\n\n/**\n * Base SubcommandBuilder.\n *\n * @export\n * @class SubcommandBuilder\n * @typedef {SubcommandBuilder}\n * @extends {SlashCommandSubcommandBuilder}\n */\nexport class SubcommandBuilder extends SlashCommandSubcommandBuilder {\n\tprivate _active = true;\n\tprivate _ownerOnly = false;\n\tprivate _permission = PermissionLevel.USER;\n\tprivate _ephemeralReply = false;\n\n\t/**\n\t * Set the subcommand as disabled.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic disable(): this {\n\t\tthis._active = false;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the subcommand as owner only.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setOwnerOnly(): this {\n\t\tthis._permission = PermissionLevel.BOT_OWNER;\n\t\tthis._ownerOnly = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the permission level required to run the subcommand.\n\t *\n\t * @public\n\t * @param {PermissionLevel} permission\n\t * @returns {this}\n\t */\n\tpublic setPermission(permission: PermissionLevel): this {\n\t\tthis._permission = permission;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the interaction as ephemeral\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setEphemeralReply(): this {\n\t\tthis._ephemeralReply = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Build the builder.\n\t *\n\t * @public\n\t * @returns {{ data: SlashCommandSubcommandBuilder; metadata: SubcommandMetadata; }}\n\t */\n\tpublic build() {\n\t\treturn {\n\t\t\tdata: this as SlashCommandSubcommandBuilder,\n\t\t\tmetadata: {\n\t\t\t\tactive: this._active,\n\t\t\t\townerOnly: this._ownerOnly,\n\t\t\t\tpermission: this._permission,\n\t\t\t\tephemeralReply: this._ephemeralReply,\n\t\t\t} satisfies SubcommandMetadata,\n\t\t};\n\t}\n}\n\n/**\n * Base Subcommand\n *\n * @export\n * @abstract\n * @class Subcommand\n * @typedef {Subcommand}\n */\nexport default abstract class Subcommand {\n\tpublic readonly data: SlashCommandSubcommandBuilder;\n\tpublic readonly metadata: SubcommandMetadata;\n\n\tprotected constructor(builder: SubcommandBuilder) {\n\t\tconst { data, metadata } = builder.build();\n\t\tthis.data = data;\n\t\tthis.metadata = metadata;\n\t}\n\n\t/**\n\t * Function to execute the subcommand.\n\t *\n\t * @abstract\n\t * @readonly\n\t * @type {(\n\t * \t\tclient: TriviousClient,\n\t * \t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t * \t) => Promise<void>}\n\t */\n\tabstract readonly execute: (\n\t\tclient: TriviousClient,\n\t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t) => Promise<void>;\n\n\t/**\n\t * Reply to the interaction respecting command metadata and if the interaction has already been replied to.\n\t *\n\t * @async\n\t * @param {ChatInputCommandInteraction<CacheType>} interaction\n\t * @param {(MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions)} options\n\t * @returns {*}\n\t */\n\tasync reply(\n\t\tinteraction: ChatInputCommandInteraction<CacheType>,\n\t\toptions: MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions\n\t) {\n\t\tif (interaction.replied || interaction.deferred) {\n\t\t\tawait interaction.editReply(options as InteractionEditReplyOptions);\n\t\t\treturn;\n\t\t}\n\n\t\tconst newOptions = { ...options } as InteractionReplyOptions;\n\t\tif (this.metadata.ephemeralReply) newOptions.flags = [\"Ephemeral\"];\n\n\t\tawait interaction.reply(newOptions);\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../src/core/commands/subcommand.base.ts"],"names":["SlashCommandSubcommandBuilder","PermissionLevel"],"mappings":";;;;;;;AAmBO,MAAM,0BAA0BA,wCAAA,CAA8B;AAAA,EAC5D,OAAA,GAAU,IAAA;AAAA,EACV,UAAA,GAAa,KAAA;AAAA,EACb,cAAcC,wBAAA,CAAgB,IAAA;AAAA,EAC9B,eAAA,GAAkB,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQnB,OAAA,GAAgB;AACtB,IAAA,IAAA,CAAK,OAAA,GAAU,KAAA;AACf,IAAA,OAAO,IAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,YAAA,GAAqB;AAC3B,IAAA,IAAA,CAAK,cAAcA,wBAAA,CAAg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AChC,IAAA,IAAI,KAAK,QAAA,CAAS,cAAA,EAAgB,UAAA,CAAW,KAAA,GAAQ,CAAC,WAAW,CAAA;AAEjE,IAAA,MAAM,WAAA,CAAY,MAAM,UAAU,CAAA;AAAA,EACnC;AACD","file":"subcommand.base.cjs","sourcesContent":["import {\n\tCacheType,\n\tChatInputCommandInteraction,\n\tInteractionEditReplyOptions,\n\tInteractionReplyOptions,\n\tMessagePayload,\n\tSlashCommandSubcommandBuilder,\n} from \"discord.js\";\nimport { PermissionLevel, SubcommandMetadata } from \"src/shared/typings/index.js\";\nimport { TriviousClient } from \"src/index.js\";\n\n/**\n * Base SubcommandBuilder.\n *\n * @export\n * @class SubcommandBuilder\n * @typedef {SubcommandBuilder}\n * @extends {SlashCommandSubcommandBuilder}\n */\nexport class SubcommandBuilder extends SlashCommandSubcommandBuilder {\n\tprivate _active = true;\n\tprivate _ownerOnly = false;\n\tprivate _permission = PermissionLevel.USER;\n\tprivate _ephemeralReply = false;\n\n\t/**\n\t * Set the subcommand as disabled.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic disable(): this {\n\t\tthis._active = false;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the subcommand as owner only.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setOwnerOnly(): this {\n\t\tthis._permission = PermissionLevel.BOT_OWNER;\n\t\tthis._ownerOnly = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the permission level required to run the subcommand.\n\t *\n\t * @public\n\t * @param {PermissionLevel} permission\n\t * @returns {this}\n\t */\n\tpublic setPermission(permission: PermissionLevel): this {\n\t\tthis._permission = permission;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the interaction as ephemeral\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setEphemeralReply(): this {\n\t\tthis._ephemeralReply = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Build the builder.\n\t *\n\t * @public\n\t * @returns {{ data: SubcommandBuilder; metadata: SubcommandMetadata; }}\n\t */\n\tpublic build() {\n\t\treturn {\n\t\t\tdata: this as SubcommandBuilder,\n\t\t\tmetadata: {\n\t\t\t\tactive: this._active,\n\t\t\t\townerOnly: this._ownerOnly,\n\t\t\t\tpermission: this._permission,\n\t\t\t\tephemeralReply: this._ephemeralReply,\n\t\t\t} satisfies SubcommandMetadata,\n\t\t};\n\t}\n}\n\n/**\n * Base Subcommand\n *\n * @export\n * @abstract\n * @class Subcommand\n * @typedef {Subcommand}\n */\nexport default abstract class Subcommand {\n\tpublic readonly data: SubcommandBuilder;\n\tpublic readonly metadata: SubcommandMetadata;\n\n\tprotected constructor(builder: SubcommandBuilder) {\n\t\tconst { data, metadata } = builder.build();\n\t\tthis.data = data;\n\t\tthis.metadata = metadata;\n\t}\n\n\t/**\n\t * Function to execute the subcommand.\n\t *\n\t * @abstract\n\t * @readonly\n\t * @type {(\n\t * \t\tclient: TriviousClient,\n\t * \t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t * \t) => Promise<void>}\n\t */\n\tabstract readonly execute: (\n\t\tclient: TriviousClient,\n\t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t) => Promise<void>;\n\n\t/**\n\t * Reply to the interaction respecting command metadata and if the interaction has already been replied to.\n\t *\n\t * @async\n\t * @param {ChatInputCommandInteraction<CacheType>} interaction\n\t * @param {(MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions)} options\n\t * @returns {*}\n\t */\n\tasync reply(\n\t\tinteraction: ChatInputCommandInteraction<CacheType>,\n\t\toptions: MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions\n\t) {\n\t\tif (interaction.replied || interaction.deferred) {\n\t\t\tawait interaction.editReply(options as InteractionEditReplyOptions);\n\t\t\treturn;\n\t\t}\n\n\t\tconst newOptions = { ...options } as InteractionReplyOptions;\n\t\tif (this.metadata.ephemeralReply) newOptions.flags = [\"Ephemeral\"];\n\n\t\tawait interaction.reply(newOptions);\n\t}\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { p as SubcommandBuilder, o as default } from '../../index-C85XsXwx.cjs';
2
+ export { p as SubcommandBuilder, o as default } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { p as SubcommandBuilder, o as default } from '../../index-DpQWPMcK.js';
2
+ export { p as SubcommandBuilder, o as default } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
@@ -52,7 +52,7 @@ class SubcommandBuilder extends SlashCommandSubcommandBuilder {
52
52
  * Build the builder.
53
53
  *
54
54
  * @public
55
- * @returns {{ data: SlashCommandSubcommandBuilder; metadata: SubcommandMetadata; }}
55
+ * @returns {{ data: SubcommandBuilder; metadata: SubcommandMetadata; }}
56
56
  */
57
57
  build() {
58
58
  return {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/core/commands/subcommand.base.ts"],"names":[],"mappings":";;;AAmBO,MAAM,0BAA0B,6BAAA,CAA8B;AAAA,EAC5D,OAAA,GAAU,IAAA;AAAA,EACV,UAAA,GAAa,KAAA;AAAA,EACb,cAAc,eAAA,CAAgB,IAAA;AAAA,EAC9B,eAAA,GAAkB,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQnB,OAAA,GAAgB;AACtB,IAAA,IAAA,CAAK,OAAA,GAAU,KAAA;AACf,IAAA,OAAO,IAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,YAAA,GAAqB;AAC3B,IAAA,IAAA,CAAK,cAAc,eAAA,CAAgB,SAAA;AACnC,IAAA,IAAA,CAAK,UAAA,GAAa,IAAA;AAClB,IAAA,OAAO,IAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASO,cAAc,UAAA,EAAmC;AACvD,IAAA,IAAA,CAAK,W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{\n\tCacheType,\n\tChatInputCommandInteraction,\n\tInteractionEditReplyOptions,\n\tInteractionReplyOptions,\n\tMessagePayload,\n\tSlashCommandSubcommandBuilder,\n} from \"discord.js\";\nimport { PermissionLevel, SubcommandMetadata } from \"src/shared/typings/index.js\";\nimport { TriviousClient } from \"src/index.js\";\n\n/**\n * Base SubcommandBuilder.\n *\n * @export\n * @class SubcommandBuilder\n * @typedef {SubcommandBuilder}\n * @extends {SlashCommandSubcommandBuilder}\n */\nexport class SubcommandBuilder extends SlashCommandSubcommandBuilder {\n\tprivate _active = true;\n\tprivate _ownerOnly = false;\n\tprivate _permission = PermissionLevel.USER;\n\tprivate _ephemeralReply = false;\n\n\t/**\n\t * Set the subcommand as disabled.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic disable(): this {\n\t\tthis._active = false;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the subcommand as owner only.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setOwnerOnly(): this {\n\t\tthis._permission = PermissionLevel.BOT_OWNER;\n\t\tthis._ownerOnly = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the permission level required to run the subcommand.\n\t *\n\t * @public\n\t * @param {PermissionLevel} permission\n\t * @returns {this}\n\t */\n\tpublic setPermission(permission: PermissionLevel): this {\n\t\tthis._permission = permission;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the interaction as ephemeral\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setEphemeralReply(): this {\n\t\tthis._ephemeralReply = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Build the builder.\n\t *\n\t * @public\n\t * @returns {{ data: SlashCommandSubcommandBuilder; metadata: SubcommandMetadata; }}\n\t */\n\tpublic build() {\n\t\treturn {\n\t\t\tdata: this as SlashCommandSubcommandBuilder,\n\t\t\tmetadata: {\n\t\t\t\tactive: this._active,\n\t\t\t\townerOnly: this._ownerOnly,\n\t\t\t\tpermission: this._permission,\n\t\t\t\tephemeralReply: this._ephemeralReply,\n\t\t\t} satisfies SubcommandMetadata,\n\t\t};\n\t}\n}\n\n/**\n * Base Subcommand\n *\n * @export\n * @abstract\n * @class Subcommand\n * @typedef {Subcommand}\n */\nexport default abstract class Subcommand {\n\tpublic readonly data: SlashCommandSubcommandBuilder;\n\tpublic readonly metadata: SubcommandMetadata;\n\n\tprotected constructor(builder: SubcommandBuilder) {\n\t\tconst { data, metadata } = builder.build();\n\t\tthis.data = data;\n\t\tthis.metadata = metadata;\n\t}\n\n\t/**\n\t * Function to execute the subcommand.\n\t *\n\t * @abstract\n\t * @readonly\n\t * @type {(\n\t * \t\tclient: TriviousClient,\n\t * \t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t * \t) => Promise<void>}\n\t */\n\tabstract readonly execute: (\n\t\tclient: TriviousClient,\n\t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t) => Promise<void>;\n\n\t/**\n\t * Reply to the interaction respecting command metadata and if the interaction has already been replied to.\n\t *\n\t * @async\n\t * @param {ChatInputCommandInteraction<CacheType>} interaction\n\t * @param {(MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions)} options\n\t * @returns {*}\n\t */\n\tasync reply(\n\t\tinteraction: ChatInputCommandInteraction<CacheType>,\n\t\toptions: MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions\n\t) {\n\t\tif (interaction.replied || interaction.deferred) {\n\t\t\tawait interaction.editReply(options as InteractionEditReplyOptions);\n\t\t\treturn;\n\t\t}\n\n\t\tconst newOptions = { ...options } as InteractionReplyOptions;\n\t\tif (this.metadata.ephemeralReply) newOptions.flags = [\"Ephemeral\"];\n\n\t\tawait interaction.reply(newOptions);\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../src/core/commands/subcommand.base.ts"],"names":[],"mappings":";;;AAmBO,MAAM,0BAA0B,6BAAA,CAA8B;AAAA,EAC5D,OAAA,GAAU,IAAA;AAAA,EACV,UAAA,GAAa,KAAA;AAAA,EACb,cAAc,eAAA,C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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAyBA,MAAM,KAAA,CACL,WAAA,EACA,OAAA,EACC;AACD,IAAA,IAAI,WAAA,CAAY,OAAA,IAAW,WAAA,CAAY,QAAA,EAAU;AAChD,MAAA,MAAM,WAAA,CAAY,UAAU,OAAsC,CAAA;AAClE,MAAA;AAAA,IACD;AAEA,IAAA,MAAM,UAAA,GAAa,EAAE,GAAG,OAAA,EAAQ;AAChC,IAAA,IAAI,KAAK,QAAA,CAAS,cAAA,EAAgB,UAAA,CAAW,KAAA,GAAQ,CAAC,WAAW,CAAA;AAEjE,IAAA,MAAM,WAAA,CAAY,MAAM,UAAU,CAAA;AAAA,EACnC;AACD","file":"subcommand.base.js","sourcesContent":["import {\n\tCacheType,\n\tChatInputCommandInteraction,\n\tInteractionEditReplyOptions,\n\tInteractionReplyOptions,\n\tMessagePayload,\n\tSlashCommandSubcommandBuilder,\n} from \"discord.js\";\nimport { PermissionLevel, SubcommandMetadata } from \"src/shared/typings/index.js\";\nimport { TriviousClient } from \"src/index.js\";\n\n/**\n * Base SubcommandBuilder.\n *\n * @export\n * @class SubcommandBuilder\n * @typedef {SubcommandBuilder}\n * @extends {SlashCommandSubcommandBuilder}\n */\nexport class SubcommandBuilder extends SlashCommandSubcommandBuilder {\n\tprivate _active = true;\n\tprivate _ownerOnly = false;\n\tprivate _permission = PermissionLevel.USER;\n\tprivate _ephemeralReply = false;\n\n\t/**\n\t * Set the subcommand as disabled.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic disable(): this {\n\t\tthis._active = false;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the subcommand as owner only.\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setOwnerOnly(): this {\n\t\tthis._permission = PermissionLevel.BOT_OWNER;\n\t\tthis._ownerOnly = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the permission level required to run the subcommand.\n\t *\n\t * @public\n\t * @param {PermissionLevel} permission\n\t * @returns {this}\n\t */\n\tpublic setPermission(permission: PermissionLevel): this {\n\t\tthis._permission = permission;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set the interaction as ephemeral\n\t *\n\t * @public\n\t * @returns {this}\n\t */\n\tpublic setEphemeralReply(): this {\n\t\tthis._ephemeralReply = true;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Build the builder.\n\t *\n\t * @public\n\t * @returns {{ data: SubcommandBuilder; metadata: SubcommandMetadata; }}\n\t */\n\tpublic build() {\n\t\treturn {\n\t\t\tdata: this as SubcommandBuilder,\n\t\t\tmetadata: {\n\t\t\t\tactive: this._active,\n\t\t\t\townerOnly: this._ownerOnly,\n\t\t\t\tpermission: this._permission,\n\t\t\t\tephemeralReply: this._ephemeralReply,\n\t\t\t} satisfies SubcommandMetadata,\n\t\t};\n\t}\n}\n\n/**\n * Base Subcommand\n *\n * @export\n * @abstract\n * @class Subcommand\n * @typedef {Subcommand}\n */\nexport default abstract class Subcommand {\n\tpublic readonly data: SubcommandBuilder;\n\tpublic readonly metadata: SubcommandMetadata;\n\n\tprotected constructor(builder: SubcommandBuilder) {\n\t\tconst { data, metadata } = builder.build();\n\t\tthis.data = data;\n\t\tthis.metadata = metadata;\n\t}\n\n\t/**\n\t * Function to execute the subcommand.\n\t *\n\t * @abstract\n\t * @readonly\n\t * @type {(\n\t * \t\tclient: TriviousClient,\n\t * \t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t * \t) => Promise<void>}\n\t */\n\tabstract readonly execute: (\n\t\tclient: TriviousClient,\n\t\tinteraction: ChatInputCommandInteraction<CacheType>\n\t) => Promise<void>;\n\n\t/**\n\t * Reply to the interaction respecting command metadata and if the interaction has already been replied to.\n\t *\n\t * @async\n\t * @param {ChatInputCommandInteraction<CacheType>} interaction\n\t * @param {(MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions)} options\n\t * @returns {*}\n\t */\n\tasync reply(\n\t\tinteraction: ChatInputCommandInteraction<CacheType>,\n\t\toptions: MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions\n\t) {\n\t\tif (interaction.replied || interaction.deferred) {\n\t\t\tawait interaction.editReply(options as InteractionEditReplyOptions);\n\t\t\treturn;\n\t\t}\n\n\t\tconst newOptions = { ...options } as InteractionReplyOptions;\n\t\tif (this.metadata.ephemeralReply) newOptions.flags = [\"Ephemeral\"];\n\n\t\tawait interaction.reply(newOptions);\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-C85XsXwx.cjs';
2
+ import { T as TriviousClient } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-DpQWPMcK.js';
2
+ import { T as TriviousClient } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-C85XsXwx.cjs';
2
+ import { T as TriviousClient } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-DpQWPMcK.js';
2
+ import { T as TriviousClient } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
5
5
 
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { C as default } from '../../index-C85XsXwx.cjs';
2
+ export { C as default } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { C as default } from '../../index-DpQWPMcK.js';
2
+ export { C as default } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { a as default } from '../../index-C85XsXwx.cjs';
2
+ export { a as default } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { a as default } from '../../index-DpQWPMcK.js';
2
+ export { a as default } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { E as default } from '../../index-C85XsXwx.cjs';
2
+ export { E as default } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { E as default } from '../../index-DpQWPMcK.js';
2
+ export { E as default } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
@@ -1,4 +1,4 @@
1
- import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-C85XsXwx.cjs';
1
+ import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-DzD1aYla.cjs';
2
2
  import '../../shared/typings/registry.cjs';
3
3
  import 'discord.js';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
- import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-DpQWPMcK.js';
1
+ import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-CfL5mpMG.js';
2
2
  import '../../shared/typings/registry.js';
3
3
  import 'discord.js';
4
4
  import '../builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { M as default } from '../../index-C85XsXwx.cjs';
2
+ export { M as default } from '../../index-DzD1aYla.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
4
  import '../builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { M as default } from '../../index-DpQWPMcK.js';
2
+ export { M as default } from '../../index-CfL5mpMG.js';
3
3
  import '../../shared/typings/registry.js';
4
4
  import '../builders/util.builders.js';
@@ -394,10 +394,10 @@ declare class SubcommandBuilder extends SlashCommandSubcommandBuilder {
394
394
  * Build the builder.
395
395
  *
396
396
  * @public
397
- * @returns {{ data: SlashCommandSubcommandBuilder; metadata: SubcommandMetadata; }}
397
+ * @returns {{ data: SubcommandBuilder; metadata: SubcommandMetadata; }}
398
398
  */
399
399
  build(): {
400
- data: SlashCommandSubcommandBuilder;
400
+ data: SubcommandBuilder;
401
401
  metadata: {
402
402
  active: boolean;
403
403
  ownerOnly: boolean;
@@ -415,7 +415,7 @@ declare class SubcommandBuilder extends SlashCommandSubcommandBuilder {
415
415
  * @typedef {Subcommand}
416
416
  */
417
417
  declare abstract class Subcommand {
418
- readonly data: SlashCommandSubcommandBuilder;
418
+ readonly data: SubcommandBuilder;
419
419
  readonly metadata: SubcommandMetadata;
420
420
  protected constructor(builder: SubcommandBuilder);
421
421
  /**
@@ -394,10 +394,10 @@ declare class SubcommandBuilder extends SlashCommandSubcommandBuilder {
394
394
  * Build the builder.
395
395
  *
396
396
  * @public
397
- * @returns {{ data: SlashCommandSubcommandBuilder; metadata: SubcommandMetadata; }}
397
+ * @returns {{ data: SubcommandBuilder; metadata: SubcommandMetadata; }}
398
398
  */
399
399
  build(): {
400
- data: SlashCommandSubcommandBuilder;
400
+ data: SubcommandBuilder;
401
401
  metadata: {
402
402
  active: boolean;
403
403
  ownerOnly: boolean;
@@ -415,7 +415,7 @@ declare class SubcommandBuilder extends SlashCommandSubcommandBuilder {
415
415
  * @typedef {Subcommand}
416
416
  */
417
417
  declare abstract class Subcommand {
418
- readonly data: SlashCommandSubcommandBuilder;
418
+ readonly data: SubcommandBuilder;
419
419
  readonly metadata: SubcommandMetadata;
420
420
  protected constructor(builder: SubcommandBuilder);
421
421
  /**
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, k as Command, l as CommandBuilder, q as CommandInteraction, r as CommandMetadata, C as CommandRegistry, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, n as ContextMenuBuilder, m as ContextMenuCommand, F as ContextMenuCommandInteraction, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, D as ModalSubmitInteraction, x as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, o as Subcommand, p as SubcommandBuilder, s as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from './index-C85XsXwx.cjs';
2
+ export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, k as Command, l as CommandBuilder, q as CommandInteraction, r as CommandMetadata, C as CommandRegistry, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, n as ContextMenuBuilder, m as ContextMenuCommand, F as ContextMenuCommandInteraction, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, D as ModalSubmitInteraction, x as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, o as Subcommand, p as SubcommandBuilder, s as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from './index-DzD1aYla.cjs';
3
3
  export { createActionRow, createEmbed } from './core/builders/util.builders.cjs';
4
4
  export { BaseRegistry } from './shared/typings/registry.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, k as Command, l as CommandBuilder, q as CommandInteraction, r as CommandMetadata, C as CommandRegistry, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, n as ContextMenuBuilder, m as ContextMenuCommand, F as ContextMenuCommandInteraction, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, D as ModalSubmitInteraction, x as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, o as Subcommand, p as SubcommandBuilder, s as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from './index-DpQWPMcK.js';
2
+ export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, k as Command, l as CommandBuilder, q as CommandInteraction, r as CommandMetadata, C as CommandRegistry, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, n as ContextMenuBuilder, m as ContextMenuCommand, F as ContextMenuCommandInteraction, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, D as ModalSubmitInteraction, x as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, o as Subcommand, p as SubcommandBuilder, s as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from './index-CfL5mpMG.js';
3
3
  export { createActionRow, createEmbed } from './core/builders/util.builders.js';
4
4
  export { BaseRegistry } from './shared/typings/registry.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { b as TriviousClientOptions } from '../../index-C85XsXwx.cjs';
2
+ export { b as TriviousClientOptions } from '../../index-DzD1aYla.cjs';
3
3
  import './registry.cjs';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { b as TriviousClientOptions } from '../../index-DpQWPMcK.js';
2
+ export { b as TriviousClientOptions } from '../../index-CfL5mpMG.js';
3
3
  import './registry.js';
4
4
  import '../../core/builders/util.builders.js';
@@ -1,4 +1,4 @@
1
- export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, t as ContextMenuMetadata, s as SubcommandMetadata } from '../../index-C85XsXwx.cjs';
1
+ export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, t as ContextMenuMetadata, s as SubcommandMetadata } from '../../index-DzD1aYla.cjs';
2
2
  import 'discord.js';
3
3
  import './registry.cjs';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
- export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, t as ContextMenuMetadata, s as SubcommandMetadata } from '../../index-DpQWPMcK.js';
1
+ export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, t as ContextMenuMetadata, s as SubcommandMetadata } from '../../index-CfL5mpMG.js';
2
2
  import 'discord.js';
3
3
  import './registry.js';
4
4
  import '../../core/builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as CustomIdConstructOptions, j as constructCustomId, h as deconstructCustomId } from '../../index-C85XsXwx.cjs';
2
+ export { f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as CustomIdConstructOptions, j as constructCustomId, h as deconstructCustomId } from '../../index-DzD1aYla.cjs';
3
3
  import './registry.cjs';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as CustomIdConstructOptions, j as constructCustomId, h as deconstructCustomId } from '../../index-DpQWPMcK.js';
2
+ export { f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as CustomIdConstructOptions, j as constructCustomId, h as deconstructCustomId } from '../../index-CfL5mpMG.js';
3
3
  import './registry.js';
4
4
  import '../../core/builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { w as Event } from '../../index-C85XsXwx.cjs';
2
+ export { w as Event } from '../../index-DzD1aYla.cjs';
3
3
  import './registry.cjs';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { w as Event } from '../../index-DpQWPMcK.js';
2
+ export { w as Event } from '../../index-CfL5mpMG.js';
3
3
  import './registry.js';
4
4
  import '../../core/builders/util.builders.js';
@@ -1,4 +1,4 @@
1
- export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, x as Module, P as PermissionLevel, s as SubcommandMetadata, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from '../../index-C85XsXwx.cjs';
1
+ export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, x as Module, P as PermissionLevel, s as SubcommandMetadata, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from '../../index-DzD1aYla.cjs';
2
2
  export { BaseRegistry } from './registry.cjs';
3
3
  import 'discord.js';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
- export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, x as Module, P as PermissionLevel, s as SubcommandMetadata, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from '../../index-DpQWPMcK.js';
1
+ export { A as AnyCommand, u as AnyCommandBuilder, v as AnyCommandMetadata, q as CommandInteraction, r as CommandMetadata, f as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, t as ContextMenuMetadata, i as CustomIdConstructOptions, w as Event, x as Module, P as PermissionLevel, s as SubcommandMetadata, b as TriviousClientOptions, j as constructCustomId, h as deconstructCustomId, g as getPermissionLevel } from '../../index-CfL5mpMG.js';
2
2
  export { BaseRegistry } from './registry.js';
3
3
  import 'discord.js';
4
4
  import '../../core/builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { x as Module } from '../../index-C85XsXwx.cjs';
2
+ export { x as Module } from '../../index-DzD1aYla.cjs';
3
3
  import './registry.cjs';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { x as Module } from '../../index-DpQWPMcK.js';
2
+ export { x as Module } from '../../index-CfL5mpMG.js';
3
3
  import './registry.js';
4
4
  import '../../core/builders/util.builders.js';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { P as PermissionLevel, g as getPermissionLevel } from '../../index-C85XsXwx.cjs';
2
+ export { P as PermissionLevel, g as getPermissionLevel } from '../../index-DzD1aYla.cjs';
3
3
  import './registry.cjs';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
1
  import 'discord.js';
2
- export { P as PermissionLevel, g as getPermissionLevel } from '../../index-DpQWPMcK.js';
2
+ export { P as PermissionLevel, g as getPermissionLevel } from '../../index-CfL5mpMG.js';
3
3
  import './registry.js';
4
4
  import '../../core/builders/util.builders.js';
@@ -1,4 +1,4 @@
1
- import { T as TriviousClient, P as PermissionLevel } from '../../index-C85XsXwx.cjs';
1
+ import { T as TriviousClient, P as PermissionLevel } from '../../index-DzD1aYla.cjs';
2
2
  import { User, GuildMember, RESTPostAPIApplicationCommandsJSONBody } from 'discord.js';
3
3
  import '../typings/registry.cjs';
4
4
  import '../../core/builders/util.builders.cjs';
@@ -1,4 +1,4 @@
1
- import { T as TriviousClient, P as PermissionLevel } from '../../index-DpQWPMcK.js';
1
+ import { T as TriviousClient, P as PermissionLevel } from '../../index-CfL5mpMG.js';
2
2
  import { User, GuildMember, RESTPostAPIApplicationCommandsJSONBody } from 'discord.js';
3
3
  import '../typings/registry.js';
4
4
  import '../../core/builders/util.builders.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trivious",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "discord-bot",