trivious 1.6.15 → 1.6.17

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
- export { T as default } from '../../index-D1Oz0EU6.js';
1
+ export { T as default } from '../../index-ddJZHFmz.js';
2
2
  import 'discord.js';
3
3
  import '../../shared/typings/permissions.js';
4
4
  import '../../shared/typings/client.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from '../../index-D1Oz0EU6.js';
2
+ export { p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from '../../index-ddJZHFmz.js';
3
3
  import '../../shared/typings/permissions.js';
4
4
  import '../../shared/typings/registry.js';
5
5
  import '../../shared/typings/client.js';
@@ -44,20 +44,18 @@ async function handleSlashCommand(client, command, interaction) {
44
44
  command.permission || PermissionLevel.USER,
45
45
  true
46
46
  );
47
+ if (command.flags?.includes("DeferReply")) {
48
+ await interactionReply({
49
+ flags: command.flags,
50
+ interaction,
51
+ options: { content: "Processing command..." }
52
+ });
53
+ }
47
54
  if ("run" in command && command.run && hasPerm) {
48
55
  await command.run(client, interaction);
49
56
  }
50
57
  if (!hasPerm) return;
51
- if (!options.getSubcommand(false) || !("subcommands" in command)) {
52
- if (command.flags?.includes("DeferReply")) {
53
- await interactionReply({
54
- flags: command.flags,
55
- interaction,
56
- options: { content: "Processing command..." }
57
- });
58
- }
59
- return;
60
- }
58
+ if (!options.getSubcommand(false) || !("subcommands" in command)) return;
61
59
  const subcommandName = options.getSubcommand();
62
60
  const subcommand = command.subcommands.get(subcommandName);
63
61
  if (!subcommand) {
@@ -72,7 +70,7 @@ async function handleSlashCommand(client, command, interaction) {
72
70
  }
73
71
  if (subcommand.flags?.includes("DeferReply") && !subcommand.flags.includes("ModalResponse")) {
74
72
  await interactionReply({
75
- flags: command.flags,
73
+ flags: subcommand.flags,
76
74
  interaction,
77
75
  options: { content: "Processing command..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iB,QAAQ,aAAA,EAAc;AAC7C,EAAA,MAAM,UAAA,GAAa,OAAA,CAAQ,WAAA,CAAa,GAAA,CAAI,cAAc,CAAA;AAE1D,EAAA,IAAI,CAAC,UAAA,EAAY;AAChB,IAAA,MAAM,gBAAA,CAAiB;AAAA,MACtB,OAAO,OAAA,CAAQ,KAAA;AAAA,MACf,WAAA;AAAA,MACA,OAAA,EAAS;AAAA,QACR,OAAA,EAAS;AAAA;AACV,KACA,CAAA;AACD,IAAA;AAAA,EACD;AAGA,EAAA,IAAI,UAAA,CAAW,KAAA,EAAO,QAAA,CAAS,YAAY,CAAA,IAAK,CAAC,UAAA,CAAW,KAAA,CAAM,QAAA,CAAS,eAAe,CAAA,EAAG;AAC5F,IAAA,MAAM,gBAAA,CAAiB;AAAA,MACtB,OAAO,OAAA,CAAQ,KAAA;AAAA,MACf,WAAA;AAAA,MACA,OAAA,EAAS,EAAE,OAAA,EAAS,uBAAA;AAAwB,KAC5C,CAAA;AAAA,EACF;AAEA,EAAA,MAAM,UAAA,CAAW,OAAA,CAAQ,MAAA,EAAQ,WAAW,CAAA;AAC7C","file":"methods.command.js","sourcesContent":["import {\n\tCacheType,\n\tChatInputCommandInteraction,\n\tGuildMember,\n\tInteraction,\n\tInteractionEditReplyOptions,\n\tInteractionReplyOptions,\n\tMessagePayload,\n} from \"discord.js\";\nimport {\n\tCommand,\n\tCommandFlags,\n\tPermissionLevel,\n\tSlashCommand,\n\tSlashSubcommand,\n\tTriviousClient,\n} from \"src/index.js\";\nimport { hasPermission } from \"src/shared/utility/functions.js\";\n\n/**\n * Reply to a command, respecting whether it has been deferred or already replied to.\n *\n * @export\n * @async\n * @param {Command} command\n * @param {ChatInputCommandInteraction | ContextMenuCommandInteraction} interaction\n * @param {(MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions)} options\n * @returns {*}\n */\nexport async function interactionReply(data: {\n\tflags?: (\"FollowUp\" | CommandFlags)[];\n\tinteraction: Interaction<CacheType>;\n\toptions: MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions;\n}) {\n\tconst { interaction, flags, options } = data;\n\tif (!(\"reply\" in interaction)) {\n\t\tthrow new Error(`Cannot reply to interaction type ${typeof interaction}`);\n\t}\n\n\tconst ephemeral = flags?.includes(\"EphemeralReply\");\n\tconst followUp = flags?.includes(\"FollowUp\");\n\n\tconst newOptions = options as InteractionReplyOptions;\n\tif (ephemeral) newOptions.flags = [\"Ephemeral\"];\n\n\tif (interaction.replied || interaction.deferred) {\n\t\tif (followUp) await interaction.followUp(newOptions);\n\t\telse await interaction.editReply(options as InteractionEditReplyOptions);\n\t} else {\n\t\tawait interaction.reply(newOptions);\n\t}\n}\n\n/**\n * Compare a permission level to the guild member's permission level.\n *\n * @export\n * @async\n * @param {TriviousClient} client\n * @param {ChatInputCommandInteraction | ContextMenuCommandInteraction} interaction\n * @param {Command} command\n * @param {PermissionLevel} requiredPermission\n * @param {boolean} [doReply=true]\n * @returns {unknown}\n */\nexport async function verifyGuildPermission(\n\tclient: TriviousClient,\n\tinteraction: Interaction<CacheType>,\n\tcommand: Command,\n\trequiredPermission: PermissionLevel,\n\tdoReply: boolean = true\n) {\n\tif (!interaction.inGuild()) return true;\n\n\tif (command.flags && command.flags.includes(\"OwnerOnly\")) {\n\t\trequiredPermission = PermissionLevel.BOT_OWNER;\n\t}\n\n\tconst member = interaction.member as GuildMember;\n\tconst memberHasPermission = hasPermission(client, { permission: requiredPermission, member });\n\n\tif (!memberHasPermission && doReply) {\n\t\tawait interactionReply({\n\t\t\tflags: command.flags,\n\t\t\tinteraction,\n\t\t\toptions: {\n\t\t\t\tcontent: `You do not have permission to run this command, required permission: \\`${PermissionLevel[requiredPermission]}\\``,\n\t\t\t},\n\t\t});\n\t}\n\n\treturn memberHasPermission;\n}\n\n/**\n * Handle execution of a slash command.\n *\n * @export\n * @async\n * @param {TriviousClient} client\n * @param {(SlashCommand | SlashSubcommand)} command\n * @param {ChatInputCommandInteraction} interaction\n * @returns {*}\n */\nexport async function handleSlashCommand(\n\tclient: TriviousClient,\n\tcommand: SlashCommand,\n\tinteraction: ChatInputCommandInteraction\n) {\n\tconst { options } = interaction;\n\n\tconst hasPerm = await verifyGuildPermission(\n\t\tclient,\n\t\tinteraction,\n\t\tcommand,\n\t\tcommand.permission || PermissionLevel.USER,\n\t\ttrue\n\t);\n\n\tif (\"run\" in command && command.run && hasPerm) {\n\t\tawait command.run(client, interaction);\n\t}\n\n\tif (!hasPerm) return;\n\n\t// skip subcommand processing and respect command flags\n\tif (!options.getSubcommand(false) || !(\"subcommands\" in command)) {\n\t\tif (command.flags?.includes(\"DeferReply\")) {\n\t\t\tawait interactionReply({\n\t\t\t\tflags: command.flags,\n\t\t\t\tinteraction,\n\t\t\t\toptions: { content: \"Processing command...\" },\n\t\t\t});\n\t\t}\n\n\t\treturn;\n\t}\n\n\tconst subcommandName = options.getSubcommand();\n\tconst subcommand = command.subcommands!.get(subcommandName) as SlashSubcommand | undefined;\n\n\tif (!subcommand) {\n\t\tawait interactionReply({\n\t\t\tflags: command.flags,\n\t\t\tinteraction,\n\t\t\toptions: {\n\t\t\t\tcontent: \"This subcommand no longer exists or is not registered.\",\n\t\t\t},\n\t\t});\n\t\treturn;\n\t}\n\n\t// respect subcommand flags over command flags\n\tif (subcommand.flags?.includes(\"DeferReply\") && !subcommand.flags.includes(\"ModalResponse\")) {\n\t\tawait interactionReply({\n\t\t\tflags: command.flags,\n\t\t\tinteraction,\n\t\t\toptions: { content: \"Processing command...\" },\n\t\t});\n\t}\n\n\tawait subcommand.execute(client, interaction);\n}\n"]}
1
+ {"version":3,"sources":["../../../src/core/commands/methods.command.ts"],"names":[],"mappings":";;;AA6BA,eAAsB,iBAAiB,IAAA,EAIpC;AACF,EAAA,MAAM,EAAE,WAAA,EAAa,KAAA,EAAO,OAAA,EAAQ,GAAI,IAAA;AACxC,EAAA,IAAI,EAAE,WAAW,WAAA,CAAA,EAAc;AAC9B,IAAA,MAAM,IAAI,KAAA,CAAM,CAAA,iCAAA,E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ACD;AAGA,EAAA,IAAI,UAAA,CAAW,KAAA,EAAO,QAAA,CAAS,YAAY,CAAA,IAAK,CAAC,UAAA,CAAW,KAAA,CAAM,QAAA,CAAS,eAAe,CAAA,EAAG;AAC5F,IAAA,MAAM,gBAAA,CAAiB;AAAA,MACtB,OAAO,UAAA,CAAW,KAAA;AAAA,MAClB,WAAA;AAAA,MACA,OAAA,EAAS,EAAE,OAAA,EAAS,uBAAA;AAAwB,KAC5C,CAAA;AAAA,EACF;AAEA,EAAA,MAAM,UAAA,CAAW,OAAA,CAAQ,MAAA,EAAQ,WAAW,CAAA;AAC7C","file":"methods.command.js","sourcesContent":["import {\n\tCacheType,\n\tChatInputCommandInteraction,\n\tGuildMember,\n\tInteraction,\n\tInteractionEditReplyOptions,\n\tInteractionReplyOptions,\n\tMessagePayload,\n} from \"discord.js\";\nimport {\n\tCommand,\n\tCommandFlags,\n\tPermissionLevel,\n\tSlashCommand,\n\tSlashSubcommand,\n\tTriviousClient,\n} from \"src/index.js\";\nimport { hasPermission } from \"src/shared/utility/functions.js\";\n\n/**\n * Reply to a command, respecting whether it has been deferred or already replied to.\n *\n * @export\n * @async\n * @param {Command} command\n * @param {ChatInputCommandInteraction | ContextMenuCommandInteraction} interaction\n * @param {(MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions)} options\n * @returns {*}\n */\nexport async function interactionReply(data: {\n\tflags?: (\"FollowUp\" | CommandFlags)[];\n\tinteraction: Interaction<CacheType>;\n\toptions: MessagePayload | InteractionEditReplyOptions | InteractionReplyOptions;\n}) {\n\tconst { interaction, flags, options } = data;\n\tif (!(\"reply\" in interaction)) {\n\t\tthrow new Error(`Cannot reply to interaction type ${typeof interaction}`);\n\t}\n\n\tconst ephemeral = flags?.includes(\"EphemeralReply\");\n\tconst followUp = flags?.includes(\"FollowUp\");\n\n\tconst newOptions = options as InteractionReplyOptions;\n\tif (ephemeral) newOptions.flags = [\"Ephemeral\"];\n\n\tif (interaction.replied || interaction.deferred) {\n\t\tif (followUp) await interaction.followUp(newOptions);\n\t\telse await interaction.editReply(options as InteractionEditReplyOptions);\n\t} else {\n\t\tawait interaction.reply(newOptions);\n\t}\n}\n\n/**\n * Compare a permission level to the guild member's permission level.\n *\n * @export\n * @async\n * @param {TriviousClient} client\n * @param {ChatInputCommandInteraction | ContextMenuCommandInteraction} interaction\n * @param {Command} command\n * @param {PermissionLevel} requiredPermission\n * @param {boolean} [doReply=true]\n * @returns {unknown}\n */\nexport async function verifyGuildPermission(\n\tclient: TriviousClient,\n\tinteraction: Interaction<CacheType>,\n\tcommand: Command,\n\trequiredPermission: PermissionLevel,\n\tdoReply: boolean = true\n) {\n\tif (!interaction.inGuild()) return true;\n\n\tif (command.flags && command.flags.includes(\"OwnerOnly\")) {\n\t\trequiredPermission = PermissionLevel.BOT_OWNER;\n\t}\n\n\tconst member = interaction.member as GuildMember;\n\tconst memberHasPermission = hasPermission(client, { permission: requiredPermission, member });\n\n\tif (!memberHasPermission && doReply) {\n\t\tawait interactionReply({\n\t\t\tflags: command.flags,\n\t\t\tinteraction,\n\t\t\toptions: {\n\t\t\t\tcontent: `You do not have permission to run this command, required permission: \\`${PermissionLevel[requiredPermission]}\\``,\n\t\t\t},\n\t\t});\n\t}\n\n\treturn memberHasPermission;\n}\n\n/**\n * Handle execution of a slash command.\n *\n * @export\n * @async\n * @param {TriviousClient} client\n * @param {(SlashCommand | SlashSubcommand)} command\n * @param {ChatInputCommandInteraction} interaction\n * @returns {*}\n */\nexport async function handleSlashCommand(\n\tclient: TriviousClient,\n\tcommand: SlashCommand,\n\tinteraction: ChatInputCommandInteraction\n) {\n\tconst { options } = interaction;\n\n\tconst hasPerm = await verifyGuildPermission(\n\t\tclient,\n\t\tinteraction,\n\t\tcommand,\n\t\tcommand.permission || PermissionLevel.USER,\n\t\ttrue\n\t);\n\n\tif (command.flags?.includes(\"DeferReply\")) {\n\t\tawait interactionReply({\n\t\t\tflags: command.flags,\n\t\t\tinteraction,\n\t\t\toptions: { content: \"Processing command...\" },\n\t\t});\n\t}\n\n\tif (\"run\" in command && command.run && hasPerm) {\n\t\tawait command.run(client, interaction);\n\t}\n\n\tif (!hasPerm) return;\n\n\t// skip subcommand processing and respect command flags\n\tif (!options.getSubcommand(false) || !(\"subcommands\" in command)) return;\n\n\tconst subcommandName = options.getSubcommand();\n\tconst subcommand = command.subcommands!.get(subcommandName) as SlashSubcommand | undefined;\n\n\tif (!subcommand) {\n\t\tawait interactionReply({\n\t\t\tflags: command.flags,\n\t\t\tinteraction,\n\t\t\toptions: {\n\t\t\t\tcontent: \"This subcommand no longer exists or is not registered.\",\n\t\t\t},\n\t\t});\n\t\treturn;\n\t}\n\n\t// respect subcommand flags over command flags\n\tif (subcommand.flags?.includes(\"DeferReply\") && !subcommand.flags.includes(\"ModalResponse\")) {\n\t\tawait interactionReply({\n\t\t\tflags: subcommand.flags,\n\t\t\tinteraction,\n\t\t\toptions: { content: \"Processing command...\" },\n\t\t});\n\t}\n\n\tawait subcommand.execute(client, interaction);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { T as TriviousClient } from '../../index-D1Oz0EU6.js';
2
+ import { T as TriviousClient } from '../../index-ddJZHFmz.js';
3
3
  import '../../shared/typings/permissions.js';
4
4
  import '../../shared/typings/registry.js';
5
5
  import '../../shared/typings/client.js';
@@ -1,6 +1,6 @@
1
1
  import * as discord_js from 'discord.js';
2
2
  import { CacheType } from 'discord.js';
3
- import { T as TriviousClient } from '../../index-D1Oz0EU6.js';
3
+ import { T as TriviousClient } from '../../index-ddJZHFmz.js';
4
4
  import '../../shared/typings/permissions.js';
5
5
  import '../../shared/typings/registry.js';
6
6
  import '../../shared/typings/client.js';
@@ -1,6 +1,6 @@
1
1
  import 'discord.js';
2
2
  import '../../shared/typings/registry.js';
3
- export { C as default } from '../../index-D1Oz0EU6.js';
3
+ export { C as default } from '../../index-ddJZHFmz.js';
4
4
  import '../../shared/typings/permissions.js';
5
5
  import '../../shared/typings/client.js';
6
6
  import '../builders/util.builders.js';
@@ -29,7 +29,7 @@ class CommandRegistry extends BaseRegistry {
29
29
  else continue;
30
30
  const command = await this.importFile(commandFile);
31
31
  if (!command || !command.active || !("data" in command)) continue;
32
- if (command.context === "SlashCommand") {
32
+ if (command.context === "SlashCommand" && "addSubcommand" in command.data) {
33
33
  const subcommandFiles = (await promises.readdir(fullPath)).filter(
34
34
  (file) => (file.endsWith(".ts") || file.endsWith(".js")) && !file.startsWith("index.") && !file.endsWith(".d.ts")
35
35
  );
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/core/registry/command.registry.ts"],"names":["fs"],"mappings":";;;;;;AAoBA,MAAO,wBAAsC,YAAA,CAAsB;AAAA,EACxD,KAAA,GAAQ,IAAI,UAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MAAM,KAAK,SAAA,GAAoB,eAAA,CAAgB,KAAK,IAAA,CAAK,KAAA,EAAO,UAAU,CAAC,CAAA,EAAG;AAC7E,IAAA,IAAI,CAAE,MAAM,MAAA,CAAO,SAAS,CAAA,EAAI;AAC/B,MAAA,OAAO,IAAA;AAAA,IACR;AAEA,IAAA,MAAM,OAAA,GAAU,MAAMA,QAAA,CAAG,OAAA,CAAQ,WAAW,EAAE,aAAA,EAAe,MAAM,CAAA;AAEnE,IAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC5B,MAAA,MAAM,QAAA,GAAW,IAAA,CAAK,SAAA,EAAW,KAAA,CAAM,IAAI,CAAA;AAC3C,MAAA,IAAI,CAAC,KAAA,CAAM,WAAA,EAAY,EAAG;AAE1B,MAAA,MAAM,SAAA,GAAY,IAAA,CAAK,QAAA,EAAU,UAAU,CAAA;AAC3C,MAAA,MAAM,OAAA,GAAU,IAAA,CAAK,QAAA,EAAU,UAAU,CAAA;AAEzC,MAAA,IAAI,WAAA,GAAc,EAAA;AAClB,MAAA,IAAI,MAAM,MAAA,CAAO,SAAS,CAAA,EAAG,WAAA,GAAc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CAAA;AAAA,IAC1C;AAEA,IAAA,OAAO,IAAA;AAAA,EACR;AACD","file":"command.registry.js","sourcesContent":["import { Collection, SlashCommandSubcommandBuilder } from \"discord.js\";\nimport {\n\tBaseRegistry,\n\tCommand,\n\tContextMenuCommand,\n\tSlashCommand,\n\tSlashSubcommand,\n} from \"src/shared/typings/index.js\";\nimport { exists, resolveUserPath } from \"src/shared/utility/functions.js\";\nimport { promises as fs } from \"fs\";\nimport path, { join } from \"node:path\";\n\n/**\n * Registry to load and get all commands.\n *\n * @export\n * @class CommandRegistry\n * @typedef {CommandRegistry}\n * @extends {BaseRegistry<AnyCommand>}\n */\nexport default class CommandRegistry extends BaseRegistry<Command> {\n\tprotected items = new Collection<string, Command>();\n\n\t/**\n\t * Load all commands and their subcommands\n\t *\n\t * @async\n\t * @param {string} [directory=getCorePath({ coreDirectory: \"commands\" })]\n\t * @returns {unknown}\n\t */\n\tasync load(directory: string = resolveUserPath(path.join(\"src\", \"commands\"))) {\n\t\tif (!(await exists(directory))) {\n\t\t\treturn this;\n\t\t}\n\n\t\tconst entries = await fs.readdir(directory, { withFileTypes: true });\n\n\t\tfor (const entry of entries) {\n\t\t\tconst fullPath = join(directory, entry.name);\n\t\t\tif (!entry.isDirectory()) continue;\n\n\t\t\tconst indexFile = join(fullPath, \"index.ts\");\n\t\t\tconst indexJs = join(fullPath, \"index.js\");\n\n\t\t\tlet commandFile = \"\";\n\t\t\tif (await exists(indexFile)) commandFile = indexFile;\n\t\t\telse if (await exists(indexJs)) commandFile = indexJs;\n\t\t\telse continue;\n\n\t\t\tconst command = (await this.importFile<Command>(commandFile)) as\n\t\t\t\t| SlashCommand\n\t\t\t\t| ContextMenuCommand\n\t\t\t\t| null;\n\t\t\tif (!command || !command.active || !(\"data\" in command)) continue;\n\n\t\t\tif (command.context === \"SlashCommand\") {\n\t\t\t\tconst subcommandFiles = (await fs.readdir(fullPath)).filter(\n\t\t\t\t\tfile =>\n\t\t\t\t\t\t(file.endsWith(\".ts\") || file.endsWith(\".js\")) &&\n\t\t\t\t\t\t!file.startsWith(\"index.\") &&\n\t\t\t\t\t\t!file.endsWith(\".d.ts\")\n\t\t\t\t);\n\n\t\t\t\tfor (const file of subcommandFiles) {\n\t\t\t\t\tconst subcommand = await this.importFile<SlashSubcommand>(join(fullPath, file));\n\t\t\t\t\tif (!subcommand) continue;\n\t\t\t\t\tif (!subcommand.data.name || !(subcommand.data instanceof SlashCommandSubcommandBuilder))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!command.subcommands) command.subcommands = new Collection<string, SlashSubcommand>();\n\t\t\t\t\tcommand.subcommands.set(subcommand.data.name, subcommand);\n\t\t\t\t\tcommand.data.addSubcommand(subcommand.data);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.items.set(command.data.name, command);\n\t\t}\n\n\t\treturn this;\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../src/core/registry/command.registry.ts"],"names":["fs"],"mappings":";;;;;;AAoBA,MAAO,wBAAsC,YAAA,CAAsB;AAAA,EACxD,KAAA,GAAQ,IAAI,UAAA,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlD,MAAM,KAAK,SAAA,GAAoB,eAAA,CAAgB,KAAK,IAAA,CAAK,KAAA,EAAO,UAAU,CAAC,CAAA,EAAG;AAC7E,IAAA,IAAI,CAAE,MAAM,MAAA,CAAO,SAAS,CAAA,EAAI;AAC/B,MAAA,OAAO,IAAA;AAAA,IACR;AAEA,IAAA,MAAM,OAAA,GAAU,MAAMA,QAAA,CAAG,OAAA,CAAQ,WAAW,EAAE,aAAA,EAAe,MAAM,CAAA;AAEnE,IAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC5B,MAAA,MAAM,QAAA,GAAW,IAAA,CAAK,SAAA,EAAW,KAAA,CAAM,IAAI,CAAA;AAC3C,MAAA,IAAI,CAAC,KAAA,CAAM,WAAA,EAAY,EAAG;AAE1B,MAAA,MAAM,SAAA,GAA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AAA,CAAY,GAAA,CAAI,UAAA,CAAW,IAAA,CAAK,MAAM,UAAU,CAAA;AACxD,UAAA,OAAA,CAAQ,IAAA,CAAK,aAAA,CAAc,UAAA,CAAW,IAAI,CAAA;AAAA,QAC3C;AAAA,MACD;AAEA,MAAA,IAAA,CAAK,KAAA,CAAM,GAAA,CAAI,OAAA,CAAQ,IAAA,CAAK,MAAM,OAAO,CAAA;AAAA,IAC1C;AAEA,IAAA,OAAO,IAAA;AAAA,EACR;AACD","file":"command.registry.js","sourcesContent":["import { Collection, SlashCommandSubcommandBuilder } from \"discord.js\";\nimport {\n\tBaseRegistry,\n\tCommand,\n\tContextMenuCommand,\n\tSlashCommand,\n\tSlashSubcommand,\n} from \"src/shared/typings/index.js\";\nimport { exists, resolveUserPath } from \"src/shared/utility/functions.js\";\nimport { promises as fs } from \"fs\";\nimport path, { join } from \"node:path\";\n\n/**\n * Registry to load and get all commands.\n *\n * @export\n * @class CommandRegistry\n * @typedef {CommandRegistry}\n * @extends {BaseRegistry<AnyCommand>}\n */\nexport default class CommandRegistry extends BaseRegistry<Command> {\n\tprotected items = new Collection<string, Command>();\n\n\t/**\n\t * Load all commands and their subcommands\n\t *\n\t * @async\n\t * @param {string} [directory=getCorePath({ coreDirectory: \"commands\" })]\n\t * @returns {unknown}\n\t */\n\tasync load(directory: string = resolveUserPath(path.join(\"src\", \"commands\"))) {\n\t\tif (!(await exists(directory))) {\n\t\t\treturn this;\n\t\t}\n\n\t\tconst entries = await fs.readdir(directory, { withFileTypes: true });\n\n\t\tfor (const entry of entries) {\n\t\t\tconst fullPath = join(directory, entry.name);\n\t\t\tif (!entry.isDirectory()) continue;\n\n\t\t\tconst indexFile = join(fullPath, \"index.ts\");\n\t\t\tconst indexJs = join(fullPath, \"index.js\");\n\n\t\t\tlet commandFile = \"\";\n\t\t\tif (await exists(indexFile)) commandFile = indexFile;\n\t\t\telse if (await exists(indexJs)) commandFile = indexJs;\n\t\t\telse continue;\n\n\t\t\tconst command = (await this.importFile<Command>(commandFile)) as\n\t\t\t\t| SlashCommand\n\t\t\t\t| ContextMenuCommand\n\t\t\t\t| null;\n\t\t\tif (!command || !command.active || !(\"data\" in command)) continue;\n\n\t\t\tif (command.context === \"SlashCommand\" && \"addSubcommand\" in command.data) {\n\t\t\t\tconst subcommandFiles = (await fs.readdir(fullPath)).filter(\n\t\t\t\t\tfile =>\n\t\t\t\t\t\t(file.endsWith(\".ts\") || file.endsWith(\".js\")) &&\n\t\t\t\t\t\t!file.startsWith(\"index.\") &&\n\t\t\t\t\t\t!file.endsWith(\".d.ts\")\n\t\t\t\t);\n\n\t\t\t\tfor (const file of subcommandFiles) {\n\t\t\t\t\tconst subcommand = await this.importFile<SlashSubcommand>(join(fullPath, file));\n\t\t\t\t\tif (!subcommand) continue;\n\t\t\t\t\tif (!subcommand.data.name || !(subcommand.data instanceof SlashCommandSubcommandBuilder))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!command.subcommands) command.subcommands = new Collection<string, SlashSubcommand>();\n\t\t\t\t\tcommand.subcommands.set(subcommand.data.name, subcommand);\n\t\t\t\t\tcommand.data.addSubcommand(subcommand.data);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.items.set(command.data.name, command);\n\t\t}\n\n\t\treturn this;\n\t}\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import 'discord.js';
2
2
  import '../../shared/typings/registry.js';
3
- export { a as default } from '../../index-D1Oz0EU6.js';
3
+ export { a as default } from '../../index-ddJZHFmz.js';
4
4
  import '../../shared/typings/permissions.js';
5
5
  import '../../shared/typings/client.js';
6
6
  import '../builders/util.builders.js';
@@ -1,6 +1,6 @@
1
1
  import 'discord.js';
2
2
  import '../../shared/typings/registry.js';
3
- export { E as default } from '../../index-D1Oz0EU6.js';
3
+ export { E as default } from '../../index-ddJZHFmz.js';
4
4
  import '../../shared/typings/permissions.js';
5
5
  import '../../shared/typings/client.js';
6
6
  import '../builders/util.builders.js';
@@ -1,5 +1,5 @@
1
1
  import { TriviousClientOptions } from '../../shared/typings/client.js';
2
- import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, T as TriviousClient } from '../../index-D1Oz0EU6.js';
2
+ import { C as CommandRegistry, a as ComponentRegistry, E as EventRegistry, M as ModuleRegistry, T as TriviousClient } from '../../index-ddJZHFmz.js';
3
3
  import 'discord.js';
4
4
  import '../../shared/typings/permissions.js';
5
5
  import '../../shared/typings/registry.js';
@@ -1,6 +1,6 @@
1
1
  import 'discord.js';
2
2
  import '../../shared/typings/registry.js';
3
- export { M as default } from '../../index-D1Oz0EU6.js';
3
+ export { M as default } from '../../index-ddJZHFmz.js';
4
4
  import '../../shared/typings/permissions.js';
5
5
  import '../../shared/typings/client.js';
6
6
  import '../builders/util.builders.js';
@@ -1,7 +1,7 @@
1
1
  import { PermissionLevel } from './shared/typings/permissions.js';
2
2
  import { BaseRegistry } from './shared/typings/registry.js';
3
3
  import { TriviousClientOptions } from './shared/typings/client.js';
4
- import { AnySelectMenuInteraction, CacheType, ButtonInteraction as ButtonInteraction$1, ModalSubmitInteraction as ModalSubmitInteraction$1, SlashCommandBuilder, Collection, SlashCommandSubcommandBuilder, ContextMenuCommandBuilder, MessageContextMenuCommandInteraction, UserContextMenuCommandInteraction, ClientEvents, Client, Interaction, MessagePayload, InteractionEditReplyOptions, InteractionReplyOptions, ChatInputCommandInteraction as ChatInputCommandInteraction$1, GuildMember, StringSelectMenuInteraction as StringSelectMenuInteraction$1, ContextMenuCommandInteraction as ContextMenuCommandInteraction$1 } from 'discord.js';
4
+ import { AnySelectMenuInteraction, CacheType, ButtonInteraction as ButtonInteraction$1, ModalSubmitInteraction as ModalSubmitInteraction$1, SlashCommandBuilder, SlashCommandOptionsOnlyBuilder, Collection, SlashCommandSubcommandBuilder, ContextMenuCommandBuilder, MessageContextMenuCommandInteraction, UserContextMenuCommandInteraction, ClientEvents, Client, Interaction, MessagePayload, InteractionEditReplyOptions, InteractionReplyOptions, ChatInputCommandInteraction as ChatInputCommandInteraction$1, GuildMember, StringSelectMenuInteraction as StringSelectMenuInteraction$1, ContextMenuCommandInteraction as ContextMenuCommandInteraction$1 } from 'discord.js';
5
5
  import './core/builders/util.builders.js';
6
6
 
7
7
  /**
@@ -89,7 +89,7 @@ interface Command {
89
89
  */
90
90
  interface SlashCommand extends Command {
91
91
  readonly context: "SlashCommand";
92
- readonly data: SlashCommandBuilder;
92
+ readonly data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder;
93
93
  subcommands?: Collection<string, Command>;
94
94
  readonly run?: (client: TriviousClient, interaction: ChatInputCommandInteraction) => Promise<void>;
95
95
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { B as ButtonInteraction, t as ChatInputCommandInteraction, g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, C as CommandRegistry, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, i as ContextMenuCommand, x as ContextMenuCommandInteraction, f as CustomIdConstructOptions, m as Event, w as ModalSubmitInteraction, n as Module, S as SlashCommand, h as SlashSubcommand, u as StringSelectMenuInteraction, T as TriviousClient, r as constructCustomId, q as deconstructCustomId, s as getPermissionLevel, p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from './index-D1Oz0EU6.js';
2
+ export { B as ButtonInteraction, t as ChatInputCommandInteraction, g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, C as CommandRegistry, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, a as ComponentRegistry, e as ComponentType, i as ContextMenuCommand, x as ContextMenuCommandInteraction, f as CustomIdConstructOptions, m as Event, w as ModalSubmitInteraction, n as Module, S as SlashCommand, h as SlashSubcommand, u as StringSelectMenuInteraction, T as TriviousClient, r as constructCustomId, q as deconstructCustomId, s as getPermissionLevel, p as handleSlashCommand, o as interactionReply, v as verifyGuildPermission } from './index-ddJZHFmz.js';
3
3
  export { createActionRow, createEmbed } from './core/builders/util.builders.js';
4
4
  export { PermissionLevel } from './shared/typings/permissions.js';
5
5
  export { BaseRegistry } from './shared/typings/registry.js';
@@ -1,6 +1,6 @@
1
1
  import './permissions.js';
2
2
  import 'discord.js';
3
- export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, i as ContextMenuCommand, S as SlashCommand, h as SlashSubcommand } from '../../index-D1Oz0EU6.js';
3
+ export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, i as ContextMenuCommand, S as SlashCommand, h as SlashSubcommand } from '../../index-ddJZHFmz.js';
4
4
  import './registry.js';
5
5
  import './client.js';
6
6
  import '../../core/builders/util.builders.js';
@@ -1,6 +1,6 @@
1
1
  import 'discord.js';
2
2
  import './permissions.js';
3
- export { b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, f as CustomIdConstructOptions } from '../../index-D1Oz0EU6.js';
3
+ export { b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, f as CustomIdConstructOptions } from '../../index-ddJZHFmz.js';
4
4
  import './registry.js';
5
5
  import './client.js';
6
6
  import '../../core/builders/util.builders.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { m as Event } from '../../index-D1Oz0EU6.js';
2
+ export { m as Event } from '../../index-ddJZHFmz.js';
3
3
  import './permissions.js';
4
4
  import './registry.js';
5
5
  import './client.js';
@@ -1,6 +1,6 @@
1
1
  export { PermissionLevel } from './permissions.js';
2
2
  export { BaseRegistry } from './registry.js';
3
- export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as ContextMenuCommand, f as CustomIdConstructOptions, m as Event, n as Module, S as SlashCommand, h as SlashSubcommand } from '../../index-D1Oz0EU6.js';
3
+ export { g as Command, l as CommandContext, k as CommandFlags, j as CommandInteraction, b as Component, c as ComponentCustomIdTag, d as ComponentInteraction, e as ComponentType, i as ContextMenuCommand, f as CustomIdConstructOptions, m as Event, n as Module, S as SlashCommand, h as SlashSubcommand } from '../../index-ddJZHFmz.js';
4
4
  export { TriviousClientOptions } from './client.js';
5
5
  import 'discord.js';
6
6
  import '../../core/builders/util.builders.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord.js';
2
- export { n as Module } from '../../index-D1Oz0EU6.js';
2
+ export { n as Module } from '../../index-ddJZHFmz.js';
3
3
  import './permissions.js';
4
4
  import './registry.js';
5
5
  import './client.js';
@@ -1,4 +1,4 @@
1
- export { r as constructCustomId, q as deconstructCustomId } from '../../index-D1Oz0EU6.js';
1
+ export { r as constructCustomId, q as deconstructCustomId } from '../../index-ddJZHFmz.js';
2
2
  import '../typings/permissions.js';
3
3
  import '../typings/registry.js';
4
4
  import 'discord.js';
@@ -1,4 +1,4 @@
1
- import { T as TriviousClient } from '../../index-D1Oz0EU6.js';
1
+ import { T as TriviousClient } from '../../index-ddJZHFmz.js';
2
2
  import { PermissionLevel } from '../typings/permissions.js';
3
3
  import { User, GuildMember, RESTPostAPIApplicationCommandsJSONBody } from 'discord.js';
4
4
  import '../typings/registry.js';
@@ -1,6 +1,6 @@
1
1
  import 'discord.js';
2
2
  import '../typings/permissions.js';
3
- export { s as getPermissionLevel } from '../../index-D1Oz0EU6.js';
3
+ export { s as getPermissionLevel } from '../../index-ddJZHFmz.js';
4
4
  import '../typings/registry.js';
5
5
  import '../typings/client.js';
6
6
  import '../../core/builders/util.builders.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trivious",
3
- "version": "1.6.15",
3
+ "version": "1.6.17",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "discord-bot",