trivious 1.5.1 → 1.5.3

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 (52) hide show
  1. package/README.md +38 -19
  2. package/dist/core/builders/util.builders.cjs +15 -0
  3. package/dist/core/builders/util.builders.cjs.map +1 -0
  4. package/dist/core/builders/util.builders.d.cts +21 -0
  5. package/dist/core/builders/util.builders.d.ts +21 -0
  6. package/dist/core/builders/util.builders.js +12 -0
  7. package/dist/core/builders/util.builders.js.map +1 -0
  8. package/dist/core/client/trivious.client.d.cts +2 -1
  9. package/dist/core/client/trivious.client.d.ts +2 -1
  10. package/dist/core/commands/command.base.d.cts +2 -1
  11. package/dist/core/commands/command.base.d.ts +2 -1
  12. package/dist/core/commands/subcommand.base.d.cts +2 -1
  13. package/dist/core/commands/subcommand.base.d.ts +2 -1
  14. package/dist/core/components/component.base.d.cts +2 -1
  15. package/dist/core/components/component.base.d.ts +2 -1
  16. package/dist/core/events/clientReady.d.cts +2 -1
  17. package/dist/core/events/clientReady.d.ts +2 -1
  18. package/dist/core/events/interactionCreate.d.cts +2 -1
  19. package/dist/core/events/interactionCreate.d.ts +2 -1
  20. package/dist/core/registry/command.registry.d.cts +2 -1
  21. package/dist/core/registry/command.registry.d.ts +2 -1
  22. package/dist/core/registry/component.registry.d.cts +2 -1
  23. package/dist/core/registry/component.registry.d.ts +2 -1
  24. package/dist/core/registry/event.registry.d.cts +2 -1
  25. package/dist/core/registry/event.registry.d.ts +2 -1
  26. package/dist/core/registry/index.d.cts +2 -1
  27. package/dist/core/registry/index.d.ts +2 -1
  28. package/dist/core/registry/module.registry.d.cts +2 -1
  29. package/dist/core/registry/module.registry.d.ts +2 -1
  30. package/dist/{index-Bf8pz7za.d.ts → index-HF-OBZPh.d.ts} +1 -0
  31. package/dist/{index-DQ3Y6DvJ.d.cts → index-ezMHiXmy.d.cts} +1 -0
  32. package/dist/index.cjs +9 -0
  33. package/dist/index.d.cts +2 -1
  34. package/dist/index.d.ts +2 -1
  35. package/dist/index.js +1 -0
  36. package/dist/shared/typings/client.d.cts +2 -1
  37. package/dist/shared/typings/client.d.ts +2 -1
  38. package/dist/shared/typings/commands.d.cts +2 -1
  39. package/dist/shared/typings/commands.d.ts +2 -1
  40. package/dist/shared/typings/components.d.cts +2 -1
  41. package/dist/shared/typings/components.d.ts +2 -1
  42. package/dist/shared/typings/events.d.cts +2 -1
  43. package/dist/shared/typings/events.d.ts +2 -1
  44. package/dist/shared/typings/index.d.cts +2 -1
  45. package/dist/shared/typings/index.d.ts +2 -1
  46. package/dist/shared/typings/module.d.cts +2 -1
  47. package/dist/shared/typings/module.d.ts +2 -1
  48. package/dist/shared/typings/permissions.d.cts +2 -1
  49. package/dist/shared/typings/permissions.d.ts +2 -1
  50. package/dist/shared/utility/functions.d.cts +2 -1
  51. package/dist/shared/utility/functions.d.ts +2 -1
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -47,28 +47,47 @@ const client = new TriviousClient({
47
47
  ### Creating a Slash Command
48
48
  ```ts
49
49
  // src/core/commands/debug/index.ts
50
- import { CommandBuilder, Command, PermissionLevel } from "trivious";
51
-
52
- const { data, metadata } = new CommandBuilder()
53
- .setName("debug")
54
- .setDescription("Debugging tools")
55
- .setGuildOnly()
56
- .setPermission(PermissionLevel.GUILD_ADMINISTRATOR)
57
- .setEphemeralReply()
58
- .build();
59
-
60
- export default class DebugCommand extends Command {
61
- data = data;
62
- metadata = metadata;
63
-
64
- // Optional: run when no subcommand is used
65
- async run?(client, interaction) {
66
- await this.reply(interaction, { content: "Use a subcommand!" });
67
- }
68
- }
50
+ import { CommandBuilder, SlashCommand } from "trivious"
51
+
52
+ export default class DebugCommand extends SlashCommand {
53
+ constructor() {
54
+ super(new CommandBuilder()
55
+ .setName("debug")
56
+ .setDescription("Debug tools")
57
+ .setGuildOnly()
58
+ .setEphemeralReply())
59
+ }
60
+ };
69
61
  ```
70
62
  > Subcommands go in the same directory as the command file and are auto-detected.
71
63
 
64
+ ### Creating a Subcommand
65
+ ```ts
66
+ // src/core/commands/debug/ping.ts
67
+ import { ChatInputCommandInteraction, Subcommand, SubcommandBuilder, TriviousClient } from "trivious";
68
+
69
+ export default class DebugPingSubcommand extends Subcommand {
70
+ constructor() {
71
+ super(new SubcommandBuilder()
72
+ .setName("ping")
73
+ .setDescription("Ping pong!")
74
+ .setOwnerOnly())
75
+ }
76
+
77
+ execute = async (client: TriviousClient, interaction: ChatInputCommandInteraction) => {
78
+ try {
79
+ const sent = await interaction.fetchReply();
80
+ const latency = sent.createdTimestamp - interaction.createdTimestamp;
81
+ const apiLatency = Math.round(interaction.client.ws.ping);
82
+
83
+ await this.reply(interaction, { content: `Pong!\nLatency ${latency}ms API Latency: ${apiLatency}ms` });
84
+ } catch (error: any) {
85
+ console.error(error);
86
+ }
87
+ };
88
+ };
89
+ ```
90
+
72
91
  ---
73
92
 
74
93
  ### Permission Levels
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var discord_js = require('discord.js');
4
+
5
+ function createActionRow(...builders) {
6
+ return new discord_js.ActionRowBuilder().setComponents(...builders);
7
+ }
8
+ function createEmbed(data) {
9
+ return new discord_js.EmbedBuilder(data);
10
+ }
11
+
12
+ exports.createActionRow = createActionRow;
13
+ exports.createEmbed = createEmbed;
14
+ //# sourceMappingURL=util.builders.cjs.map
15
+ //# sourceMappingURL=util.builders.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/core/builders/util.builders.ts"],"names":["ActionRowBuilder","EmbedBuilder"],"mappings":";;;;AAUO,SAAS,mBAA+D,QAAA,EAAe;AAC7F,EAAA,OAAO,IAAIA,2BAAA,EAAoB,CAAE,aAAA,CAAc,GAAG,QAAQ,CAAA;AAC3D;AASO,SAAS,YAAY,IAAA,EAA6B;AACxD,EAAA,OAAO,IAAIC,wBAAa,IAAI,CAAA;AAC7B","file":"util.builders.cjs","sourcesContent":["import { ActionRowBuilder, APIEmbed, EmbedBuilder, EmbedData, MessageActionRowComponentBuilder } from \"discord.js\";\n\n/**\n * Utility action row builder\n *\n * @export\n * @template {MessageActionRowComponentBuilder} T\n * @param {...T[]} builders\n * @returns {*}\n */\nexport function createActionRow<T extends MessageActionRowComponentBuilder>(...builders: T[]) {\n\treturn new ActionRowBuilder<T>().setComponents(...builders);\n}\n\n/**\n * Utility embed builder\n *\n * @export\n * @param {?(EmbedData | APIEmbed)} [data]\n * @returns {*}\n */\nexport function createEmbed(data?: EmbedData | APIEmbed) {\n\treturn new EmbedBuilder(data);\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import { MessageActionRowComponentBuilder, ActionRowBuilder, EmbedData, APIEmbed, EmbedBuilder } from 'discord.js';
2
+
3
+ /**
4
+ * Utility action row builder
5
+ *
6
+ * @export
7
+ * @template {MessageActionRowComponentBuilder} T
8
+ * @param {...T[]} builders
9
+ * @returns {*}
10
+ */
11
+ declare function createActionRow<T extends MessageActionRowComponentBuilder>(...builders: T[]): ActionRowBuilder<T>;
12
+ /**
13
+ * Utility embed builder
14
+ *
15
+ * @export
16
+ * @param {?(EmbedData | APIEmbed)} [data]
17
+ * @returns {*}
18
+ */
19
+ declare function createEmbed(data?: EmbedData | APIEmbed): EmbedBuilder;
20
+
21
+ export { createActionRow, createEmbed };
@@ -0,0 +1,21 @@
1
+ import { MessageActionRowComponentBuilder, ActionRowBuilder, EmbedData, APIEmbed, EmbedBuilder } from 'discord.js';
2
+
3
+ /**
4
+ * Utility action row builder
5
+ *
6
+ * @export
7
+ * @template {MessageActionRowComponentBuilder} T
8
+ * @param {...T[]} builders
9
+ * @returns {*}
10
+ */
11
+ declare function createActionRow<T extends MessageActionRowComponentBuilder>(...builders: T[]): ActionRowBuilder<T>;
12
+ /**
13
+ * Utility embed builder
14
+ *
15
+ * @export
16
+ * @param {?(EmbedData | APIEmbed)} [data]
17
+ * @returns {*}
18
+ */
19
+ declare function createEmbed(data?: EmbedData | APIEmbed): EmbedBuilder;
20
+
21
+ export { createActionRow, createEmbed };
@@ -0,0 +1,12 @@
1
+ import { ActionRowBuilder, EmbedBuilder } from 'discord.js';
2
+
3
+ function createActionRow(...builders) {
4
+ return new ActionRowBuilder().setComponents(...builders);
5
+ }
6
+ function createEmbed(data) {
7
+ return new EmbedBuilder(data);
8
+ }
9
+
10
+ export { createActionRow, createEmbed };
11
+ //# sourceMappingURL=util.builders.js.map
12
+ //# sourceMappingURL=util.builders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/core/builders/util.builders.ts"],"names":[],"mappings":";;AAUO,SAAS,mBAA+D,QAAA,EAAe;AAC7F,EAAA,OAAO,IAAI,gBAAA,EAAoB,CAAE,aAAA,CAAc,GAAG,QAAQ,CAAA;AAC3D;AASO,SAAS,YAAY,IAAA,EAA6B;AACxD,EAAA,OAAO,IAAI,aAAa,IAAI,CAAA;AAC7B","file":"util.builders.js","sourcesContent":["import { ActionRowBuilder, APIEmbed, EmbedBuilder, EmbedData, MessageActionRowComponentBuilder } from \"discord.js\";\n\n/**\n * Utility action row builder\n *\n * @export\n * @template {MessageActionRowComponentBuilder} T\n * @param {...T[]} builders\n * @returns {*}\n */\nexport function createActionRow<T extends MessageActionRowComponentBuilder>(...builders: T[]) {\n\treturn new ActionRowBuilder<T>().setComponents(...builders);\n}\n\n/**\n * Utility embed builder\n *\n * @export\n * @param {?(EmbedData | APIEmbed)} [data]\n * @returns {*}\n */\nexport function createEmbed(data?: EmbedData | APIEmbed) {\n\treturn new EmbedBuilder(data);\n}\n"]}
@@ -1,3 +1,4 @@
1
- export { T as default } from '../../index-DQ3Y6DvJ.cjs';
1
+ export { T as default } from '../../index-ezMHiXmy.cjs';
2
2
  import 'discord.js';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
- export { T as default } from '../../index-Bf8pz7za.js';
1
+ export { T as default } from '../../index-HF-OBZPh.js';
2
2
  import 'discord.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { j as CommandBuilder, l as ContextMenuBuilder, k as ContextMenuCommand, S as SlashCommand, i as default } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { j as CommandBuilder, l as ContextMenuBuilder, k as ContextMenuCommand, S as SlashCommand, i as default } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { j as CommandBuilder, l as ContextMenuBuilder, k as ContextMenuCommand, S as SlashCommand, i as default } from '../../index-Bf8pz7za.js';
2
+ export { j as CommandBuilder, l as ContextMenuBuilder, k as ContextMenuCommand, S as SlashCommand, i as default } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { n as SubcommandBuilder, m as default } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { n as SubcommandBuilder, m as default } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { n as SubcommandBuilder, m as default } from '../../index-Bf8pz7za.js';
2
+ export { n as SubcommandBuilder, m as default } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { x as ComponentBuilder, w as default } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { x as ComponentBuilder, w as default } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { x as ComponentBuilder, w as default } from '../../index-Bf8pz7za.js';
2
+ export { x as ComponentBuilder, w as default } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,6 +1,7 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-DQ3Y6DvJ.cjs';
2
+ import { T as TriviousClient } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
4
5
 
5
6
  declare const _default: {
6
7
  name: "clientReady";
@@ -1,6 +1,7 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-Bf8pz7za.js';
2
+ import { T as TriviousClient } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
4
5
 
5
6
  declare const _default: {
6
7
  name: "clientReady";
@@ -1,6 +1,7 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-DQ3Y6DvJ.cjs';
2
+ import { T as TriviousClient } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
4
5
 
5
6
  declare const _default: {
6
7
  name: "interactionCreate";
@@ -1,6 +1,7 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-Bf8pz7za.js';
2
+ import { T as TriviousClient } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
4
5
 
5
6
  declare const _default: {
6
7
  name: "interactionCreate";
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { C as default } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { C as default } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { C as default } from '../../index-Bf8pz7za.js';
2
+ export { C as default } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { a as default } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { a as default } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { a as default } from '../../index-Bf8pz7za.js';
2
+ export { a as default } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { E as default } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { E as default } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { E as default } from '../../index-Bf8pz7za.js';
2
+ export { E as default } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,6 +1,7 @@
1
- import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-DQ3Y6DvJ.cjs';
1
+ import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-ezMHiXmy.cjs';
2
2
  import '../../shared/typings/registry.cjs';
3
3
  import 'discord.js';
4
+ import '../builders/util.builders.cjs';
4
5
 
5
6
  /**
6
7
  * Create new registries.
@@ -1,6 +1,7 @@
1
- import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-Bf8pz7za.js';
1
+ import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, b as TriviousClientOptions, T as TriviousClient } from '../../index-HF-OBZPh.js';
2
2
  import '../../shared/typings/registry.js';
3
3
  import 'discord.js';
4
+ import '../builders/util.builders.js';
4
5
 
5
6
  /**
6
7
  * Create new registries.
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { M as default } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { M as default } from '../../index-ezMHiXmy.cjs';
3
3
  import '../../shared/typings/registry.cjs';
4
+ import '../builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { M as default } from '../../index-Bf8pz7za.js';
2
+ export { M as default } from '../../index-HF-OBZPh.js';
3
3
  import '../../shared/typings/registry.js';
4
+ import '../builders/util.builders.js';
@@ -1,6 +1,7 @@
1
1
  import { BaseRegistry } from './shared/typings/registry.js';
2
2
  import * as discord_js from 'discord.js';
3
3
  import { GuildMember, AnySelectMenuInteraction, CacheType, ButtonInteraction as ButtonInteraction$1, ModalSubmitInteraction as ModalSubmitInteraction$1, SlashCommandBuilder, ContextMenuCommandBuilder, Collection, MessagePayload, InteractionEditReplyOptions, InteractionReplyOptions, SlashCommandSubcommandBuilder, ChatInputCommandInteraction as ChatInputCommandInteraction$1, ClientOptions, ClientEvents, ComponentType as ComponentType$1, Client, StringSelectMenuInteraction as StringSelectMenuInteraction$1, ContextMenuCommandInteraction as ContextMenuCommandInteraction$1 } from 'discord.js';
4
+ import './core/builders/util.builders.js';
4
5
 
5
6
  /**
6
7
  * User permission level enums
@@ -1,6 +1,7 @@
1
1
  import { BaseRegistry } from './shared/typings/registry.cjs';
2
2
  import * as discord_js from 'discord.js';
3
3
  import { GuildMember, AnySelectMenuInteraction, CacheType, ButtonInteraction as ButtonInteraction$1, ModalSubmitInteraction as ModalSubmitInteraction$1, SlashCommandBuilder, ContextMenuCommandBuilder, Collection, MessagePayload, InteractionEditReplyOptions, InteractionReplyOptions, SlashCommandSubcommandBuilder, ChatInputCommandInteraction as ChatInputCommandInteraction$1, ClientOptions, ClientEvents, ComponentType as ComponentType$1, Client, StringSelectMenuInteraction as StringSelectMenuInteraction$1, ContextMenuCommandInteraction as ContextMenuCommandInteraction$1 } from 'discord.js';
4
+ import './core/builders/util.builders.cjs';
4
5
 
5
6
  /**
6
7
  * User permission level enums
package/dist/index.cjs CHANGED
@@ -8,6 +8,7 @@ var subcommand_base_js = require('./core/commands/subcommand.base.js');
8
8
  var command_registry_js = require('./core/registry/command.registry.js');
9
9
  var component_base_js = require('./core/components/component.base.js');
10
10
  var component_registry_js = require('./core/registry/component.registry.js');
11
+ var util_builders_js = require('./core/builders/util.builders.js');
11
12
  var index_js = require('./shared/typings/index.js');
12
13
 
13
14
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -69,6 +70,14 @@ Object.defineProperty(exports, "ComponentRegistry", {
69
70
  enumerable: true,
70
71
  get: function () { return component_registry_js__default.default; }
71
72
  });
73
+ Object.defineProperty(exports, "createActionRow", {
74
+ enumerable: true,
75
+ get: function () { return util_builders_js.createActionRow; }
76
+ });
77
+ Object.defineProperty(exports, "createEmbed", {
78
+ enumerable: true,
79
+ get: function () { return util_builders_js.createEmbed; }
80
+ });
72
81
  Object.keys(index_js).forEach(function (k) {
73
82
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
74
83
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, i as Command, j as CommandBuilder, o as CommandInteraction, p as CommandMetadata, C as CommandRegistry, w as Component, x as ComponentBuilder, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, a as ComponentRegistry, e as ComponentType, l as ContextMenuBuilder, k as ContextMenuCommand, F as ContextMenuCommandInteraction, r as ContextMenuMetadata, u as Event, D as ModalSubmitInteraction, v as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, m as Subcommand, n as SubcommandBuilder, q as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from './index-DQ3Y6DvJ.cjs';
2
+ export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, i as Command, j as CommandBuilder, o as CommandInteraction, p as CommandMetadata, C as CommandRegistry, w as Component, x as ComponentBuilder, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, a as ComponentRegistry, e as ComponentType, l as ContextMenuBuilder, k as ContextMenuCommand, F as ContextMenuCommandInteraction, r as ContextMenuMetadata, u as Event, D as ModalSubmitInteraction, v as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, m as Subcommand, n as SubcommandBuilder, q as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from './index-ezMHiXmy.cjs';
3
+ export { createActionRow, createEmbed } from './core/builders/util.builders.cjs';
3
4
  export { BaseRegistry } from './shared/typings/registry.cjs';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, i as Command, j as CommandBuilder, o as CommandInteraction, p as CommandMetadata, C as CommandRegistry, w as Component, x as ComponentBuilder, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, a as ComponentRegistry, e as ComponentType, l as ContextMenuBuilder, k as ContextMenuCommand, F as ContextMenuCommandInteraction, r as ContextMenuMetadata, u as Event, D as ModalSubmitInteraction, v as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, m as Subcommand, n as SubcommandBuilder, q as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from './index-Bf8pz7za.js';
2
+ export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, B as ButtonInteraction, y as ChatInputCommandInteraction, i as Command, j as CommandBuilder, o as CommandInteraction, p as CommandMetadata, C as CommandRegistry, w as Component, x as ComponentBuilder, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, a as ComponentRegistry, e as ComponentType, l as ContextMenuBuilder, k as ContextMenuCommand, F as ContextMenuCommandInteraction, r as ContextMenuMetadata, u as Event, D as ModalSubmitInteraction, v as Module, P as PermissionLevel, S as SlashCommand, z as StringSelectMenuInteraction, m as Subcommand, n as SubcommandBuilder, q as SubcommandMetadata, T as TriviousClient, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from './index-HF-OBZPh.js';
3
+ export { createActionRow, createEmbed } from './core/builders/util.builders.js';
3
4
  export { BaseRegistry } from './shared/typings/registry.js';
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ export { default as Subcommand, SubcommandBuilder } from './core/commands/subcom
6
6
  export { default as CommandRegistry } from './core/registry/command.registry.js';
7
7
  export { default as Component, ComponentBuilder } from './core/components/component.base.js';
8
8
  export { default as ComponentRegistry } from './core/registry/component.registry.js';
9
+ export { createActionRow, createEmbed } from './core/builders/util.builders.js';
9
10
  export * from './shared/typings/index.js';
10
11
  //# sourceMappingURL=index.js.map
11
12
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { b as TriviousClientOptions } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { b as TriviousClientOptions } from '../../index-ezMHiXmy.cjs';
3
3
  import './registry.cjs';
4
+ import '../../core/builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { b as TriviousClientOptions } from '../../index-Bf8pz7za.js';
2
+ export { b as TriviousClientOptions } from '../../index-HF-OBZPh.js';
3
3
  import './registry.js';
4
+ import '../../core/builders/util.builders.js';
@@ -1,3 +1,4 @@
1
- export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, r as ContextMenuMetadata, q as SubcommandMetadata } from '../../index-DQ3Y6DvJ.cjs';
1
+ export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, r as ContextMenuMetadata, q as SubcommandMetadata } from '../../index-ezMHiXmy.cjs';
2
2
  import 'discord.js';
3
3
  import './registry.cjs';
4
+ import '../../core/builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
- export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, r as ContextMenuMetadata, q as SubcommandMetadata } from '../../index-Bf8pz7za.js';
1
+ export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, r as ContextMenuMetadata, q as SubcommandMetadata } from '../../index-HF-OBZPh.js';
2
2
  import 'discord.js';
3
3
  import './registry.js';
4
+ import '../../core/builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, h as deconstructCustomId } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, h as deconstructCustomId } from '../../index-ezMHiXmy.cjs';
3
3
  import './registry.cjs';
4
+ import '../../core/builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, h as deconstructCustomId } from '../../index-Bf8pz7za.js';
2
+ export { c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, h as deconstructCustomId } from '../../index-HF-OBZPh.js';
3
3
  import './registry.js';
4
+ import '../../core/builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { u as Event } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { u as Event } from '../../index-ezMHiXmy.cjs';
3
3
  import './registry.cjs';
4
+ import '../../core/builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { u as Event } from '../../index-Bf8pz7za.js';
2
+ export { u as Event } from '../../index-HF-OBZPh.js';
3
3
  import './registry.js';
4
+ import '../../core/builders/util.builders.js';
@@ -1,3 +1,4 @@
1
- export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, r as ContextMenuMetadata, u as Event, v as Module, P as PermissionLevel, q as SubcommandMetadata, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from '../../index-DQ3Y6DvJ.cjs';
1
+ export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, r as ContextMenuMetadata, u as Event, v as Module, P as PermissionLevel, q as SubcommandMetadata, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from '../../index-ezMHiXmy.cjs';
2
2
  export { BaseRegistry } from './registry.cjs';
3
3
  import 'discord.js';
4
+ import '../../core/builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
- export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, r as ContextMenuMetadata, u as Event, v as Module, P as PermissionLevel, q as SubcommandMetadata, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from '../../index-Bf8pz7za.js';
1
+ export { A as AnyCommand, s as AnyCommandBuilder, t as AnyCommandMetadata, o as CommandInteraction, p as CommandMetadata, c as ComponentCustomIdTag, d as ComponentInteraction, f as ComponentMetadata, e as ComponentType, r as ContextMenuMetadata, u as Event, v as Module, P as PermissionLevel, q as SubcommandMetadata, b as TriviousClientOptions, h as deconstructCustomId, g as getPermissionLevel } from '../../index-HF-OBZPh.js';
2
2
  export { BaseRegistry } from './registry.js';
3
3
  import 'discord.js';
4
+ import '../../core/builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { v as Module } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { v as Module } from '../../index-ezMHiXmy.cjs';
3
3
  import './registry.cjs';
4
+ import '../../core/builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { v as Module } from '../../index-Bf8pz7za.js';
2
+ export { v as Module } from '../../index-HF-OBZPh.js';
3
3
  import './registry.js';
4
+ import '../../core/builders/util.builders.js';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { P as PermissionLevel, g as getPermissionLevel } from '../../index-DQ3Y6DvJ.cjs';
2
+ export { P as PermissionLevel, g as getPermissionLevel } from '../../index-ezMHiXmy.cjs';
3
3
  import './registry.cjs';
4
+ import '../../core/builders/util.builders.cjs';
@@ -1,3 +1,4 @@
1
1
  import 'discord.js';
2
- export { P as PermissionLevel, g as getPermissionLevel } from '../../index-Bf8pz7za.js';
2
+ export { P as PermissionLevel, g as getPermissionLevel } from '../../index-HF-OBZPh.js';
3
3
  import './registry.js';
4
+ import '../../core/builders/util.builders.js';
@@ -1,6 +1,7 @@
1
- import { T as TriviousClient, P as PermissionLevel } from '../../index-DQ3Y6DvJ.cjs';
1
+ import { T as TriviousClient, P as PermissionLevel } from '../../index-ezMHiXmy.cjs';
2
2
  import { User, GuildMember, RESTPostAPIApplicationCommandsJSONBody } from 'discord.js';
3
3
  import '../typings/registry.cjs';
4
+ import '../../core/builders/util.builders.cjs';
4
5
 
5
6
  /**
6
7
  * Framework package root.
@@ -1,6 +1,7 @@
1
- import { T as TriviousClient, P as PermissionLevel } from '../../index-Bf8pz7za.js';
1
+ import { T as TriviousClient, P as PermissionLevel } from '../../index-HF-OBZPh.js';
2
2
  import { User, GuildMember, RESTPostAPIApplicationCommandsJSONBody } from 'discord.js';
3
3
  import '../typings/registry.js';
4
+ import '../../core/builders/util.builders.js';
4
5
 
5
6
  /**
6
7
  * Framework package root.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trivious",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "discord-bot",