commandkit 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cache.cjs +2 -0
- package/cache.d.ts +1 -0
- package/dist/{ActionRow-Bt9qi0Mb.d.ts → ActionRow-DSh9roc5.d.ts} +2 -3
- package/dist/{Button-DxJLcZIU.d.ts → Button-BPsE5ju0.d.ts} +5 -6
- package/dist/{ButtonKit-BfcyvWfj.d.ts → ButtonKit-CNPmVg3h.d.ts} +2 -3
- package/dist/{ChannelSelectMenuKit-DYkudikb.d.ts → ChannelSelectMenuKit-CcOdaLQ6.d.ts} +3 -4
- package/dist/CommandTree-qu-8oAEV.d.ts +55 -0
- package/dist/CommandsRouter-Co225Ae5.d.ts +242 -0
- package/dist/{EventInterceptor-D9JKMcfi.d.ts → EventInterceptor-wg378vJp.d.ts} +1 -2
- package/dist/{EventsRouter-EuuSu6NH.d.ts → EventsRouter-Bt63ZuEF.d.ts} +21 -2
- package/dist/{MentionableSelectMenuKit-Mu4xqP6B.d.ts → MentionableSelectMenuKit-8_Nkgn_a.d.ts} +3 -4
- package/dist/{MessageCommandParser-DPCbHXCS.d.ts → MessageCommandParser-BYbxHOSK.d.ts} +7 -2
- package/dist/{Modal-v9rrcMl-.d.ts → Modal-DbWK6VmV.d.ts} +5 -6
- package/dist/{ModalKit-XJSM65SV.d.ts → ModalKit-CnmUVpw-.d.ts} +2 -3
- package/dist/{RoleSelectMenuKit-CCjcp3HY.d.ts → RoleSelectMenuKit-Bei7DHqD.d.ts} +3 -4
- package/dist/{SelectMenu-CY0vvoSu.d.ts → SelectMenu-Bce_PClo.d.ts} +8 -9
- package/dist/{StringSelectMenuKit-G5nBTicX.d.ts → StringSelectMenuKit-CBeB9HqT.d.ts} +3 -4
- package/dist/TreeArtifact-D6FZ5SVd.d.ts +27 -0
- package/dist/{UserSelectMenuKit-D3SO_fXA.d.ts → UserSelectMenuKit-DZmeZ_Tp.d.ts} +3 -4
- package/dist/analytics/analytics-engine.d.ts +1 -1
- package/dist/analytics/analytics-engine.js +1 -1
- package/dist/analytics/analytics-provider.d.ts +1 -1
- package/dist/analytics/constants.js +0 -1
- package/dist/analytics/constants.js.map +1 -1
- package/dist/analytics/utils.js +1 -1
- package/dist/{analytics-engine-DnRsHBId.d.ts → analytics-engine-Bz1p7ud3.d.ts} +178 -30
- package/dist/app/commands/AppCommandRunner.d.ts +1 -1
- package/dist/app/commands/AppCommandRunner.js +1 -1
- package/dist/app/commands/Context.d.ts +1 -1
- package/dist/app/commands/Context.js +1 -1
- package/dist/app/commands/MessageCommandParser.d.ts +1 -1
- package/dist/app/commands/MessageCommandParser.js +79 -71
- package/dist/app/commands/MessageCommandParser.js.map +1 -1
- package/dist/app/commands/helpers.d.ts +1 -1
- package/dist/app/commands/helpers.js +0 -1
- package/dist/app/commands/helpers.js.map +1 -1
- package/dist/app/events/EventWorkerContext.d.ts +3 -3
- package/dist/app/events/EventWorkerContext.js +0 -1
- package/dist/app/events/EventWorkerContext.js.map +1 -1
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
- package/dist/app/handlers/AppCommandHandler.js +1 -1
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
- package/dist/app/handlers/AppEventsHandler.js +1 -1
- package/dist/app/index.d.ts +5 -5
- package/dist/app/index.js +1 -1
- package/dist/app/interrupt/signals.d.ts +1 -1
- package/dist/app/interrupt/signals.js.map +1 -1
- package/dist/app/middlewares/permissions.d.ts +1 -2
- package/dist/app/middlewares/permissions.js +1 -1
- package/dist/app/register/CommandRegistrar.d.ts +1 -1
- package/dist/app/register/CommandRegistrar.js +1 -1
- package/dist/app/router/CommandTree.d.ts +2 -0
- package/dist/app/router/CommandTree.js +1 -0
- package/dist/app/router/CommandsRouter.d.ts +2 -2
- package/dist/app/router/CommandsRouter.js +445 -24
- package/dist/app/router/CommandsRouter.js.map +1 -1
- package/dist/app/router/EventsRouter.d.ts +2 -2
- package/dist/app/router/EventsRouter.js +56 -3
- package/dist/app/router/EventsRouter.js.map +1 -1
- package/dist/app/router/TreeArtifact.d.ts +2 -0
- package/dist/app/router/TreeArtifact.js +87 -0
- package/dist/app/router/TreeArtifact.js.map +1 -0
- package/dist/app/router/index.d.ts +6 -3
- package/dist/app/router/index.js +8 -1
- package/dist/checkbox-DoR0Pcxm.d.ts +27 -0
- package/dist/cli/app-process.d.ts +2 -3
- package/dist/cli/app-process.js +15 -4
- package/dist/cli/app-process.js.map +1 -1
- package/dist/cli/build.d.ts +4 -9
- package/dist/cli/build.js +33 -5
- package/dist/cli/build.js.map +1 -1
- package/dist/cli/common.d.ts +3 -6
- package/dist/cli/common.js +2 -2
- package/dist/cli/common.js.map +1 -1
- package/dist/cli/development.d.ts +5 -6
- package/dist/cli/development.js +12 -12
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.js.map +1 -1
- package/dist/cli/generators.js +0 -1
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.js +5 -5
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.d.ts +1 -3
- package/dist/cli/init.js +37 -12
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/production.d.ts +1 -3
- package/dist/cli/production.js +4 -4
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +0 -1
- package/dist/cli/type-checker.js.map +1 -1
- package/dist/cli/utils.d.ts +0 -1
- package/dist/cli/utils.js.map +1 -1
- package/dist/{commandkit-Bh7C1_c7.js → commandkit-DNbfLwyR.js} +786 -200
- package/dist/commandkit-DNbfLwyR.js.map +1 -0
- package/dist/commandkit.d.ts +1 -1
- package/dist/commandkit.js +1 -1
- package/dist/{common-CCvvgnxi.d.ts → common-CIbPzguv.d.ts} +2 -3
- package/dist/components/common/EventInterceptor.d.ts +1 -1
- package/dist/components/common/EventInterceptor.js +1 -0
- package/dist/components/common/EventInterceptor.js.map +1 -1
- package/dist/components/common/element.d.ts +1 -1
- package/dist/components/common/element.js +1 -1
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/display/common.d.ts +0 -1
- package/dist/components/display/common.js +1 -1
- package/dist/components/display/container.d.ts +1 -1
- package/dist/components/display/container.js +1 -1
- package/dist/components/display/file.d.ts +1 -1
- package/dist/components/display/file.js +0 -1
- package/dist/components/display/file.js.map +1 -1
- package/dist/components/display/index.d.ts +9 -8
- package/dist/components/display/index.js +1 -1
- package/dist/components/display/label.d.ts +1 -1
- package/dist/components/display/label.js +1 -1
- package/dist/components/display/media-gallery.d.ts +1 -1
- package/dist/components/display/media-gallery.js +1 -1
- package/dist/components/display/poll.d.ts +1 -1
- package/dist/components/display/poll.js +4 -10
- package/dist/components/display/poll.js.map +1 -1
- package/dist/components/display/section.d.ts +1 -1
- package/dist/components/display/section.js +1 -1
- package/dist/components/display/separator.d.ts +1 -1
- package/dist/components/display/separator.js +0 -1
- package/dist/components/display/separator.js.map +1 -1
- package/dist/components/display/text-display.d.ts +1 -1
- package/dist/components/display/text-display.js +0 -1
- package/dist/components/display/text-display.js.map +1 -1
- package/dist/components/index.d.ts +26 -23
- package/dist/components/index.js +6 -1
- package/dist/components/interactive/action-row/ActionRow.d.ts +1 -1
- package/dist/components/interactive/action-row/ActionRow.js +0 -1
- package/dist/components/interactive/action-row/ActionRow.js.map +1 -1
- package/dist/components/interactive/button/Button.d.ts +1 -1
- package/dist/components/interactive/button/Button.js +1 -1
- package/dist/components/interactive/button/ButtonKit.d.ts +1 -1
- package/dist/components/interactive/button/ButtonKit.js +1 -1
- package/dist/components/interactive/checkbox/checkbox.d.ts +2 -0
- package/dist/components/interactive/checkbox/checkbox.js +6 -0
- package/dist/components/interactive/modal/Modal.d.ts +1 -1
- package/dist/components/interactive/modal/Modal.js +1 -1
- package/dist/components/interactive/modal/ModalKit.d.ts +1 -1
- package/dist/components/interactive/modal/ModalKit.js +1 -1
- package/dist/components/interactive/radio/radio.d.ts +2 -0
- package/dist/components/interactive/radio/radio.js +5 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -1
- package/dist/components/interactive/select-menu/SelectMenu.js +1 -1
- package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/common.d.ts +1 -1
- package/dist/config/config.d.ts +1 -2
- package/dist/config/config.js +1 -1
- package/dist/config/default.d.ts +1 -2
- package/dist/config/default.js +1 -1
- package/dist/config/loader.d.ts +1 -2
- package/dist/config/loader.js +1 -1
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +1 -1
- package/dist/config/utils.js.map +1 -1
- package/dist/{constants-DqtJY0t-.d.ts → constants-B7AfnOFa.d.ts} +1 -1
- package/dist/{constants-DwxpkIeH.d.ts → constants-kWgE3L9F.d.ts} +15 -2
- package/dist/{container-CYojOA9d.d.ts → container-NVgblXmw.d.ts} +1 -2
- package/dist/context/async-context.d.ts +1 -1
- package/dist/context/async-context.js +1 -1
- package/dist/context/environment.d.ts +1 -1
- package/dist/context/environment.js +1 -1
- package/dist/{element-DeLvTMfZ.d.ts → element-BMZYAAQ-.d.ts} +3 -4
- package/dist/events/CommandKitEventsChannel.d.ts +1 -1
- package/dist/events/CommandKitEventsChannel.js +3 -2
- package/dist/events/CommandKitEventsChannel.js.map +1 -1
- package/dist/{file-DLO1zEcH.d.ts → file-DYAmr697.d.ts} +1 -2
- package/dist/flags/FlagProvider.d.ts +1 -1
- package/dist/flags/FlagProvider.js +1 -0
- package/dist/flags/FlagProvider.js.map +1 -1
- package/dist/flags/feature-flags.d.ts +1 -1
- package/dist/flags/feature-flags.js +1 -1
- package/dist/flags/store.d.ts +1 -1
- package/dist/flags/store.js +0 -1
- package/dist/flags/store.js.map +1 -1
- package/dist/{helpers-zmC44Mcu.d.ts → helpers-vlnRvNJv.d.ts} +1 -2
- package/dist/index-CAFaKBs_.d.ts +8 -0
- package/dist/index-COt7nfC9.d.ts +2 -0
- package/dist/index-DvqHpiuh.d.ts +16 -0
- package/dist/index.d.ts +37 -31
- package/dist/index.js +14 -2
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/constants.js.map +1 -1
- package/dist/kv/dotprops.js.map +1 -1
- package/dist/kv/kv.d.ts +0 -1
- package/dist/kv/kv.js +1 -1
- package/dist/kv/kv.js.map +1 -1
- package/dist/kv/serde.d.ts +1 -2
- package/dist/kv/serde.js +27 -27
- package/dist/kv/serde.js.map +1 -1
- package/dist/{label-DqGRqodo.d.ts → label-DClaYktn.d.ts} +1 -2
- package/dist/logger/DefaultLogger.d.ts +0 -1
- package/dist/logger/DefaultLogger.js +1 -1
- package/dist/logger/Logger.d.ts +0 -1
- package/dist/logger/Logger.js +1 -1
- package/dist/logger/NoopLogger.d.ts +0 -1
- package/dist/logger/NoopLogger.js.map +1 -1
- package/dist/{media-gallery-Ca8es-eB.d.ts → media-gallery-z2Snzz-u.d.ts} +1 -2
- package/dist/plugins/CompilerPlugin.d.ts +1 -1
- package/dist/plugins/CompilerPlugin.js +2 -2
- package/dist/plugins/CompilerPlugin.js.map +1 -1
- package/dist/plugins/PluginCommon.d.ts +1 -1
- package/dist/plugins/PluginCommon.js +1 -1
- package/dist/plugins/PluginCommon.js.map +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -1
- package/dist/plugins/RuntimePlugin.js +2 -2
- package/dist/plugins/RuntimePlugin.js.map +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +1 -1
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
- package/dist/plugins/types.d.ts +1 -1
- package/dist/{poll-DQ6DX_Tt.d.ts → poll-D2QDStsw.d.ts} +4 -14
- package/dist/radio-CJH_N4lq.d.ts +20 -0
- package/dist/{section-Q8nwx_-q.d.ts → section-DrFBT5b-.d.ts} +1 -2
- package/dist/{separator-B8P-kdIK.d.ts → separator-BVm3w6yd.d.ts} +1 -2
- package/dist/{signals-CBXwugBW.d.ts → signals-DRMDrCOn.d.ts} +1 -1
- package/dist/{text-display-CL9C2yMc.d.ts → text-display-BG0nNqy3.d.ts} +1 -2
- package/dist/{types-DZy7U-Ld.d.ts → types-ur7SvktF.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/colors.d.ts +1 -3
- package/dist/utils/colors.js +0 -1
- package/dist/utils/colors.js.map +1 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +19 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/utils/dev-hooks.js +1 -1
- package/dist/utils/error-codes.js +15 -0
- package/dist/utils/error-codes.js.map +1 -1
- package/dist/utils/resolve-file-url.js +2 -2
- package/dist/utils/resolve-file-url.js.map +1 -1
- package/dist/utils/types-package.d.ts +6 -2
- package/dist/utils/types-package.js +31 -38
- package/dist/utils/types-package.js.map +1 -1
- package/dist/utils/useful-stuff/async-queue.js.map +1 -1
- package/dist/utils/useful-stuff/mutex.js.map +1 -1
- package/dist/utils/useful-stuff/ratelimiter.js +4 -1
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.js +1 -1
- package/dist/utils/warning.d.ts +1 -5
- package/dist/utils/warning.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +17 -17
- package/dist/CommandsRouter-DiNoF0dq.d.ts +0 -145
- package/dist/commandkit-Bh7C1_c7.js.map +0 -1
- package/dist/index-BIsCUWAs.d.ts +0 -1
- package/dist/index-CwHYpK-f.d.ts +0 -1
- package/dist/index-DHrsNvX1.d.ts +0 -1
- /package/dist/{chunk-BE-pF4vm.js → rolldown-runtime-C_NdSu1c.js} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/
|
|
2
|
+
<img src="https://raw.githubusercontent.com/neplexlabs/commandkit/main/apps/website/static/img/ckit_logo.svg" width="75%" />
|
|
3
3
|
<br />
|
|
4
4
|
<a href="https://commandkit.dev/discord"><img src="https://img.shields.io/discord/1055188344188973066?color=5865F2&logo=discord&logoColor=white" alt="support server" /></a>
|
|
5
5
|
<a href="https://www.npmjs.com/package/commandkit"><img src="https://img.shields.io/npm/v/commandkit?maxAge=3600" alt="npm version" /></a>
|
package/cache.cjs
CHANGED
package/cache.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as CommandKitElement, t as AnyCommandKitElement } from "./element-
|
|
2
|
-
|
|
1
|
+
import { n as CommandKitElement, t as AnyCommandKitElement } from "./element-BMZYAAQ-.js";
|
|
3
2
|
//#region src/components/interactive/action-row/ActionRow.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The properties for the action row component.
|
|
@@ -16,4 +15,4 @@ interface ActionRowProps {
|
|
|
16
15
|
declare function ActionRow(props: ActionRowProps): CommandKitElement<'action-row'>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { ActionRowProps as n, ActionRow as t };
|
|
19
|
-
//# sourceMappingURL=ActionRow-
|
|
18
|
+
//# sourceMappingURL=ActionRow-DSh9roc5.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as CommandKitButtonBuilderOnEnd, i as CommandKitButtonBuilderInteractionCollectorDispatchContextData, r as CommandKitButtonBuilderInteractionCollectorDispatch } from "./ButtonKit-
|
|
3
|
-
import { n as CommandKitElement } from "./element-
|
|
4
|
-
import { t as MaybeArray } from "./types-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
|
+
import { a as CommandKitButtonBuilderOnEnd, i as CommandKitButtonBuilderInteractionCollectorDispatchContextData, r as CommandKitButtonBuilderInteractionCollectorDispatch } from "./ButtonKit-CNPmVg3h.js";
|
|
3
|
+
import { n as CommandKitElement } from "./element-BMZYAAQ-.js";
|
|
4
|
+
import { t as MaybeArray } from "./types-ur7SvktF.js";
|
|
5
5
|
import { ButtonStyle, ComponentEmojiResolvable } from "discord.js";
|
|
6
|
-
|
|
7
6
|
//#region src/components/interactive/button/Button.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* The button children type.
|
|
@@ -35,4 +34,4 @@ interface ButtonProps {
|
|
|
35
34
|
declare function Button(props: ButtonProps): CommandKitElement<'button-kit'>;
|
|
36
35
|
//#endregion
|
|
37
36
|
export { ButtonChildrenLike as n, ButtonProps as r, Button as t };
|
|
38
|
-
//# sourceMappingURL=Button-
|
|
37
|
+
//# sourceMappingURL=Button-BPsE5ju0.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
1
|
+
import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
2
|
import { Awaitable, ButtonBuilder, ButtonInteraction, Events } from "discord.js";
|
|
3
|
-
|
|
4
3
|
//#region src/components/interactive/button/ButtonKit.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The predicate function that filters button interactions.
|
|
@@ -83,4 +82,4 @@ declare class ButtonKit extends ButtonBuilder {
|
|
|
83
82
|
}
|
|
84
83
|
//#endregion
|
|
85
84
|
export { CommandKitButtonBuilderOnEnd as a, CommandKitButtonBuilderInteractionCollectorDispatchContextData as i, ButtonKitPredicate as n, OnButtonKitClick as o, CommandKitButtonBuilderInteractionCollectorDispatch as r, OnButtonKitEnd as s, ButtonKit as t };
|
|
86
|
-
//# sourceMappingURL=ButtonKit-
|
|
85
|
+
//# sourceMappingURL=ButtonKit-CNPmVg3h.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
|
|
3
3
|
import { ChannelSelectMenuBuilder, ChannelSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
4
|
//#region src/components/interactive/select-menu/ChannelSelectMenuKit.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Type for the handler function that is called when the channel select menu is submitted.
|
|
@@ -63,4 +62,4 @@ declare class ChannelSelectMenuKit extends ChannelSelectMenuBuilder {
|
|
|
63
62
|
}
|
|
64
63
|
//#endregion
|
|
65
64
|
export { ChannelSelectMenuKitPredicate as n, OnChannelSelectMenuKitSubmit as r, ChannelSelectMenuKit as t };
|
|
66
|
-
//# sourceMappingURL=ChannelSelectMenuKit-
|
|
65
|
+
//# sourceMappingURL=ChannelSelectMenuKit-CcOdaLQ6.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//#region src/app/router/CommandTree.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Source types for command tree nodes discovered from the filesystem.
|
|
4
|
+
*/
|
|
5
|
+
type CommandTreeNodeSource = 'root' | 'flat' | 'directory' | 'group' | 'shorthand';
|
|
6
|
+
/**
|
|
7
|
+
* Logical node kinds after tree compilation.
|
|
8
|
+
*/
|
|
9
|
+
type CommandTreeNodeKind = 'root' | 'flat' | 'command' | 'group' | 'subcommand';
|
|
10
|
+
/**
|
|
11
|
+
* Internal tree node representing either a filesystem command or a
|
|
12
|
+
* hierarchical container.
|
|
13
|
+
*/
|
|
14
|
+
interface CommandTreeNode {
|
|
15
|
+
id: string;
|
|
16
|
+
source: CommandTreeNodeSource;
|
|
17
|
+
kind: CommandTreeNodeKind;
|
|
18
|
+
token: string;
|
|
19
|
+
route: string[];
|
|
20
|
+
category: string | null;
|
|
21
|
+
parentId: string | null;
|
|
22
|
+
childIds: string[];
|
|
23
|
+
directoryPath: string;
|
|
24
|
+
definitionPath: string | null;
|
|
25
|
+
relativePath: string;
|
|
26
|
+
shorthand: boolean;
|
|
27
|
+
executable: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Executable command route produced from the internal tree.
|
|
31
|
+
*/
|
|
32
|
+
interface CompiledCommandRoute {
|
|
33
|
+
id: string;
|
|
34
|
+
key: string;
|
|
35
|
+
kind: Exclude<CommandTreeNodeKind, 'root' | 'group'>;
|
|
36
|
+
token: string;
|
|
37
|
+
route: string[];
|
|
38
|
+
category: string | null;
|
|
39
|
+
definitionPath: string;
|
|
40
|
+
relativePath: string;
|
|
41
|
+
nodeId: string;
|
|
42
|
+
middlewares: string[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Validation or compilation diagnostic emitted while building the
|
|
46
|
+
* command tree.
|
|
47
|
+
*/
|
|
48
|
+
interface CommandRouteDiagnostic {
|
|
49
|
+
code: string;
|
|
50
|
+
message: string;
|
|
51
|
+
path: string;
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { CompiledCommandRoute as a, CommandTreeNodeSource as i, CommandTreeNode as n, CommandTreeNodeKind as r, CommandRouteDiagnostic as t };
|
|
55
|
+
//# sourceMappingURL=CommandTree-qu-8oAEV.d.ts.map
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { a as CompiledCommandRoute, n as CommandTreeNode, t as CommandRouteDiagnostic } from "./CommandTree-qu-8oAEV.js";
|
|
2
|
+
import { Collection } from "discord.js";
|
|
3
|
+
//#region src/app/router/CommandsRouter.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Represents a command with its metadata and middleware associations.
|
|
6
|
+
*/
|
|
7
|
+
interface Command {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
path: string;
|
|
11
|
+
relativePath: string;
|
|
12
|
+
parentPath: string;
|
|
13
|
+
middlewares: Array<string>;
|
|
14
|
+
category: string | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents a middleware with its metadata and scope.
|
|
18
|
+
*/
|
|
19
|
+
interface Middleware {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
path: string;
|
|
23
|
+
relativePath: string;
|
|
24
|
+
parentPath: string;
|
|
25
|
+
global: boolean;
|
|
26
|
+
command: string | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Data structure containing parsed commands, middleware, and tree data.
|
|
30
|
+
*/
|
|
31
|
+
interface ParsedCommandData {
|
|
32
|
+
commands: Record<string, Command>;
|
|
33
|
+
middlewares: Record<string, Middleware>;
|
|
34
|
+
treeNodes?: Record<string, CommandTreeNode>;
|
|
35
|
+
compiledRoutes?: Record<string, CompiledCommandRoute>;
|
|
36
|
+
diagnostics?: CommandRouteDiagnostic[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Configuration options for the commands router.
|
|
40
|
+
*/
|
|
41
|
+
interface CommandsRouterOptions {
|
|
42
|
+
entrypoint: string;
|
|
43
|
+
}
|
|
44
|
+
type RouterFileChangeType = 'add' | 'change' | 'unlink' | 'unlinkDir';
|
|
45
|
+
/**
|
|
46
|
+
* Handles discovery and parsing of command and middleware files in the filesystem.
|
|
47
|
+
*/
|
|
48
|
+
declare class CommandsRouter {
|
|
49
|
+
private readonly options;
|
|
50
|
+
/**
|
|
51
|
+
* @private
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
private commands;
|
|
55
|
+
/**
|
|
56
|
+
* @private
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
private middlewares;
|
|
60
|
+
/**
|
|
61
|
+
* @private
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
private treeNodes;
|
|
65
|
+
/**
|
|
66
|
+
* @private
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
private compiledRoutes;
|
|
70
|
+
/**
|
|
71
|
+
* @private
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
private diagnostics;
|
|
75
|
+
/**
|
|
76
|
+
* Creates a new CommandsRouter instance.
|
|
77
|
+
* @param options - Configuration options for the router
|
|
78
|
+
*/
|
|
79
|
+
constructor(options: CommandsRouterOptions);
|
|
80
|
+
/**
|
|
81
|
+
* Populates the router with existing command, middleware, and tree data.
|
|
82
|
+
* @param data - Parsed command data to populate with
|
|
83
|
+
*/
|
|
84
|
+
populate(data: ParsedCommandData): void;
|
|
85
|
+
/**
|
|
86
|
+
* Checks if the configured entrypoint path exists.
|
|
87
|
+
* @returns True if the path exists
|
|
88
|
+
*/
|
|
89
|
+
isValidPath(): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* @private
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
private isCommand;
|
|
95
|
+
/**
|
|
96
|
+
* @private
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
private isMiddleware;
|
|
100
|
+
/**
|
|
101
|
+
* @private
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
private isCategory;
|
|
105
|
+
/**
|
|
106
|
+
* @private
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
private isCommandDirectory;
|
|
110
|
+
/**
|
|
111
|
+
* @private
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
private isGroupDirectory;
|
|
115
|
+
/**
|
|
116
|
+
* @private
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
private isCommandDefinition;
|
|
120
|
+
/**
|
|
121
|
+
* @private
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
private isGroupDefinition;
|
|
125
|
+
/**
|
|
126
|
+
* @private
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
private isSubcommandFile;
|
|
130
|
+
/**
|
|
131
|
+
* Clears all loaded commands, middleware, and compiled tree data.
|
|
132
|
+
*/
|
|
133
|
+
clear(): void;
|
|
134
|
+
/**
|
|
135
|
+
* Scans the filesystem for commands and middleware files.
|
|
136
|
+
* @returns Parsed command data
|
|
137
|
+
*/
|
|
138
|
+
scan(): Promise<ParsedCommandData>;
|
|
139
|
+
/**
|
|
140
|
+
* Incrementally updates only the top-level command subtree affected by a file change.
|
|
141
|
+
* Falls back to a full scan when the changed path cannot be safely scoped.
|
|
142
|
+
*/
|
|
143
|
+
scanIncremental(changedPath: string, _changeType?: RouterFileChangeType): Promise<ParsedCommandData>;
|
|
144
|
+
/**
|
|
145
|
+
* Gets the raw command, middleware, and compiled tree collections.
|
|
146
|
+
* @returns Object containing router collections
|
|
147
|
+
*/
|
|
148
|
+
getData(): {
|
|
149
|
+
commands: Collection<string, Command>;
|
|
150
|
+
middlewares: Collection<string, Middleware>;
|
|
151
|
+
treeNodes: Collection<string, CommandTreeNode>;
|
|
152
|
+
compiledRoutes: Collection<string, CompiledCommandRoute>;
|
|
153
|
+
diagnostics: CommandRouteDiagnostic[];
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Gets only the internal command tree and compiled route data.
|
|
157
|
+
* @returns Object containing tree data
|
|
158
|
+
*/
|
|
159
|
+
getTreeData(): {
|
|
160
|
+
treeNodes: Collection<string, CommandTreeNode>;
|
|
161
|
+
compiledRoutes: Collection<string, CompiledCommandRoute>;
|
|
162
|
+
diagnostics: CommandRouteDiagnostic[];
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Converts the loaded data to a JSON-serializable format.
|
|
166
|
+
* @returns Plain object with commands, middleware, and tree data
|
|
167
|
+
*/
|
|
168
|
+
toJSON(): ParsedCommandData;
|
|
169
|
+
/**
|
|
170
|
+
* @private
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
private initializeRootNode;
|
|
174
|
+
/**
|
|
175
|
+
* @private
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
private ensureRootNode;
|
|
179
|
+
/**
|
|
180
|
+
* @private
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
183
|
+
private pruneCommandSubtree;
|
|
184
|
+
/**
|
|
185
|
+
* @private
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
private traverseDirectory;
|
|
189
|
+
/**
|
|
190
|
+
* @private
|
|
191
|
+
* @internal
|
|
192
|
+
*/
|
|
193
|
+
private createFlatCommandNode;
|
|
194
|
+
/**
|
|
195
|
+
* @private
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
private createTreeNode;
|
|
199
|
+
/**
|
|
200
|
+
* @private
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
private resolveNodeKind;
|
|
204
|
+
/**
|
|
205
|
+
* @private
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
private compileTree;
|
|
209
|
+
/**
|
|
210
|
+
* @private
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
private collectCompiledMiddlewares;
|
|
214
|
+
/**
|
|
215
|
+
* @private
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
private addDiagnostic;
|
|
219
|
+
/**
|
|
220
|
+
* @private
|
|
221
|
+
* @internal
|
|
222
|
+
*/
|
|
223
|
+
private handle;
|
|
224
|
+
/**
|
|
225
|
+
* @private
|
|
226
|
+
* @internal
|
|
227
|
+
*/
|
|
228
|
+
private applyMiddlewares;
|
|
229
|
+
/**
|
|
230
|
+
* @private
|
|
231
|
+
* @internal
|
|
232
|
+
*/
|
|
233
|
+
private replaceEntrypoint;
|
|
234
|
+
/**
|
|
235
|
+
* @private
|
|
236
|
+
* @internal
|
|
237
|
+
*/
|
|
238
|
+
private isWithinPath;
|
|
239
|
+
}
|
|
240
|
+
//#endregion
|
|
241
|
+
export { ParsedCommandData as a, Middleware as i, CommandsRouter as n, RouterFileChangeType as o, CommandsRouterOptions as r, Command as t };
|
|
242
|
+
//# sourceMappingURL=CommandsRouter-Co225Ae5.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Awaitable, Client, ClientEvents } from "discord.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/common/EventInterceptor.d.ts
|
|
4
3
|
interface EventInterceptorContextData<E extends keyof ClientEvents> {
|
|
5
4
|
/**
|
|
@@ -88,4 +87,4 @@ declare class EventInterceptor {
|
|
|
88
87
|
}
|
|
89
88
|
//#endregion
|
|
90
89
|
export { EventInterceptorContextData as n, EventInterceptorErrorHandler as r, EventInterceptor as t };
|
|
91
|
-
//# sourceMappingURL=EventInterceptor-
|
|
90
|
+
//# sourceMappingURL=EventInterceptor-wg378vJp.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region src/app/router/EventsRouter.d.ts
|
|
2
|
+
type EventsRouterFileChangeType = 'add' | 'change' | 'unlink' | 'unlinkDir';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration options for the EventsRouter
|
|
4
5
|
* @interface EventsRouterOptions
|
|
@@ -61,6 +62,10 @@ declare class EventsRouter {
|
|
|
61
62
|
* Clear all parsed events
|
|
62
63
|
*/
|
|
63
64
|
clear(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Populates router state from pre-resolved event metadata.
|
|
67
|
+
*/
|
|
68
|
+
populate(events: EventsTree): void;
|
|
64
69
|
/**
|
|
65
70
|
* Reload and re-scan the entrypoint directory for events
|
|
66
71
|
* @returns Promise resolving to the updated events tree
|
|
@@ -71,6 +76,10 @@ declare class EventsRouter {
|
|
|
71
76
|
* @returns Promise resolving to the events tree
|
|
72
77
|
*/
|
|
73
78
|
scan(): Promise<EventsTree>;
|
|
79
|
+
/**
|
|
80
|
+
* Incrementally rescans only the event subtree impacted by a changed path.
|
|
81
|
+
*/
|
|
82
|
+
scanIncremental(changedPath: string, _changeType?: EventsRouterFileChangeType): Promise<EventsTree>;
|
|
74
83
|
/**
|
|
75
84
|
* Convert the internal events Collection to a plain object
|
|
76
85
|
* @returns Events tree as a plain object
|
|
@@ -84,7 +93,17 @@ declare class EventsRouter {
|
|
|
84
93
|
* @returns Promise resolving to the parsed event metadata
|
|
85
94
|
*/
|
|
86
95
|
private scanEvent;
|
|
96
|
+
/**
|
|
97
|
+
* @private
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
private isWithinPath;
|
|
101
|
+
/**
|
|
102
|
+
* @private
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
private resolveTopLevelBranch;
|
|
87
106
|
}
|
|
88
107
|
//#endregion
|
|
89
|
-
export { ParsedEvent as i,
|
|
90
|
-
//# sourceMappingURL=EventsRouter-
|
|
108
|
+
export { ParsedEvent as a, EventsTree as i, EventsRouterFileChangeType as n, EventsRouterOptions as r, EventsRouter as t };
|
|
109
|
+
//# sourceMappingURL=EventsRouter-Bt63ZuEF.d.ts.map
|
package/dist/{MentionableSelectMenuKit-Mu4xqP6B.d.ts → MentionableSelectMenuKit-8_Nkgn_a.d.ts}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
|
|
3
3
|
import { MentionableSelectMenuBuilder, MentionableSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
4
|
//#region src/components/interactive/select-menu/MentionableSelectMenuKit.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Type for the handler function that is called when the mentionable select menu is submitted.
|
|
@@ -58,4 +57,4 @@ declare class MentionableSelectMenuKit extends MentionableSelectMenuBuilder {
|
|
|
58
57
|
}
|
|
59
58
|
//#endregion
|
|
60
59
|
export { MentionableSelectMenuKitPredicate as n, OnMentionableSelectMenuKitSubmit as r, MentionableSelectMenuKit as t };
|
|
61
|
-
//# sourceMappingURL=MentionableSelectMenuKit-
|
|
60
|
+
//# sourceMappingURL=MentionableSelectMenuKit-8_Nkgn_a.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApplicationCommandOptionType, Attachment, CommandInteractionOption, GuildMember, Message, Role, User } from "discord.js";
|
|
2
2
|
import { Channel } from "diagnostics_channel";
|
|
3
|
-
|
|
4
3
|
//#region src/app/commands/MessageCommandParser.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Represents a parsed message command with its components.
|
|
@@ -13,6 +12,7 @@ interface ParsedMessageCommand {
|
|
|
13
12
|
}[];
|
|
14
13
|
subcommand?: string;
|
|
15
14
|
subcommandGroup?: string;
|
|
15
|
+
fullRoute: string[];
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Schema defining the types of options for a message command.
|
|
@@ -53,6 +53,11 @@ declare class MessageCommandParser {
|
|
|
53
53
|
* @returns The command name
|
|
54
54
|
*/
|
|
55
55
|
getCommand(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Gets the full command route as an array of segments.
|
|
58
|
+
* @returns Array of command segments
|
|
59
|
+
*/
|
|
60
|
+
getFullRoute(): string[];
|
|
56
61
|
/**
|
|
57
62
|
* Gets the subcommand name if present.
|
|
58
63
|
* @returns The subcommand name or undefined
|
|
@@ -191,4 +196,4 @@ declare class MessageCommandOptions {
|
|
|
191
196
|
}
|
|
192
197
|
//#endregion
|
|
193
198
|
export { ParsedMessageCommand as i, MessageCommandOptionsSchema as n, MessageCommandParser as r, MessageCommandOptions as t };
|
|
194
|
-
//# sourceMappingURL=MessageCommandParser-
|
|
199
|
+
//# sourceMappingURL=MessageCommandParser-BYbxHOSK.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { i as ModalKit, n as CommandKitModalBuilderInteractionCollectorDispatchContextData, o as OnModalKitEnd, s as OnModalKitSubmit } from "./ModalKit-
|
|
3
|
-
import { n as CommandKitElement } from "./element-
|
|
4
|
-
import { t as MaybeArray } from "./types-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
|
+
import { i as ModalKit, n as CommandKitModalBuilderInteractionCollectorDispatchContextData, o as OnModalKitEnd, s as OnModalKitSubmit } from "./ModalKit-CnmUVpw-.js";
|
|
3
|
+
import { n as CommandKitElement } from "./element-BMZYAAQ-.js";
|
|
4
|
+
import { t as MaybeArray } from "./types-ur7SvktF.js";
|
|
5
5
|
import { FileUploadBuilder, FileUploadComponentData, TextInputStyle } from "discord.js";
|
|
6
|
-
|
|
7
6
|
//#region src/components/interactive/modal/Modal.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* The properties for the modal component.
|
|
@@ -72,4 +71,4 @@ interface FileUploadProps extends Omit<FileUploadComponentData, 'type' | 'requir
|
|
|
72
71
|
declare function FileUpload(props: FileUploadProps): FileUploadBuilder;
|
|
73
72
|
//#endregion
|
|
74
73
|
export { ParagraphInput as a, TextInputProps as c, ModalProps as i, FileUploadProps as n, ShortInput as o, Modal as r, TextInput as s, FileUpload as t };
|
|
75
|
-
//# sourceMappingURL=Modal-
|
|
74
|
+
//# sourceMappingURL=Modal-DbWK6VmV.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
1
|
+
import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
2
|
import { Awaitable, Events, ModalBuilder, ModalSubmitInteraction } from "discord.js";
|
|
3
|
-
|
|
4
3
|
//#region src/components/interactive/modal/ModalKit.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The predicate function that filters modal interactions.
|
|
@@ -83,4 +82,4 @@ declare class ModalKit extends ModalBuilder {
|
|
|
83
82
|
}
|
|
84
83
|
//#endregion
|
|
85
84
|
export { ModalKitPredicate as a, ModalKit as i, CommandKitModalBuilderInteractionCollectorDispatchContextData as n, OnModalKitEnd as o, CommandKitModalBuilderOnEnd as r, OnModalKitSubmit as s, CommandKitModalBuilderInteractionCollectorDispatch as t };
|
|
86
|
-
//# sourceMappingURL=ModalKit-
|
|
85
|
+
//# sourceMappingURL=ModalKit-CnmUVpw-.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
|
|
3
3
|
import { RoleSelectMenuBuilder, RoleSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
4
|
//#region src/components/interactive/select-menu/RoleSelectMenuKit.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Type for the handler function that is called when the role select menu is submitted.
|
|
@@ -63,4 +62,4 @@ declare class RoleSelectMenuKit extends RoleSelectMenuBuilder {
|
|
|
63
62
|
}
|
|
64
63
|
//#endregion
|
|
65
64
|
export { RoleSelectMenuKit as n, RoleSelectMenuKitPredicate as r, OnRoleSelectMenuKitSubmit as t };
|
|
66
|
-
//# sourceMappingURL=RoleSelectMenuKit-
|
|
65
|
+
//# sourceMappingURL=RoleSelectMenuKit-Bei7DHqD.d.ts.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { t as MaybeArray } from "./types-
|
|
2
|
-
import { n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
3
|
-
import { n as StringSelectMenuKit } from "./StringSelectMenuKit-
|
|
4
|
-
import { t as ChannelSelectMenuKit } from "./ChannelSelectMenuKit-
|
|
5
|
-
import { t as MentionableSelectMenuKit } from "./MentionableSelectMenuKit-
|
|
6
|
-
import { n as UserSelectMenuKit } from "./UserSelectMenuKit-
|
|
7
|
-
import { n as RoleSelectMenuKit } from "./RoleSelectMenuKit-
|
|
1
|
+
import { t as MaybeArray } from "./types-ur7SvktF.js";
|
|
2
|
+
import { n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
|
|
3
|
+
import { n as StringSelectMenuKit } from "./StringSelectMenuKit-CBeB9HqT.js";
|
|
4
|
+
import { t as ChannelSelectMenuKit } from "./ChannelSelectMenuKit-CcOdaLQ6.js";
|
|
5
|
+
import { t as MentionableSelectMenuKit } from "./MentionableSelectMenuKit-8_Nkgn_a.js";
|
|
6
|
+
import { n as UserSelectMenuKit } from "./UserSelectMenuKit-DZmeZ_Tp.js";
|
|
7
|
+
import { n as RoleSelectMenuKit } from "./RoleSelectMenuKit-Bei7DHqD.js";
|
|
8
8
|
import { APISelectMenuOption, BaseSelectMenuComponentData, ChannelSelectMenuComponentData, ChannelSelectMenuInteraction, MentionableSelectMenuComponentData, MentionableSelectMenuInteraction, RoleSelectMenuComponentData, RoleSelectMenuInteraction, SelectMenuComponentOptionData, Snowflake, StringSelectMenuInteraction, StringSelectMenuOptionBuilder, UserSelectMenuComponentData, UserSelectMenuInteraction } from "discord.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/interactive/select-menu/SelectMenu.d.ts
|
|
11
10
|
/**
|
|
12
11
|
* Type for the common properties shared by all select menu builders.
|
|
@@ -137,4 +136,4 @@ interface ChannelSelectMenuProps extends Partial<Omit<ChannelSelectMenuComponent
|
|
|
137
136
|
declare function ChannelSelectMenu(props: ChannelSelectMenuProps): ChannelSelectMenuKit;
|
|
138
137
|
//#endregion
|
|
139
138
|
export { MentionableSelectMenu as a, RoleSelectMenu as c, StringSelectMenu as d, StringSelectMenuOption as f, UserSelectMenuProps as g, UserSelectMenu as h, CommonSelectMenuProps as i, RoleSelectMenuProps as l, StringSelectMenuProps as m, ChannelSelectMenuProps as n, MentionableSelectMenuProps as o, StringSelectMenuOptionProps as p, CommonBuilderKit as r, ResolveBuilderInteraction as s, ChannelSelectMenu as t, SelectMenuProps as u };
|
|
140
|
-
//# sourceMappingURL=SelectMenu-
|
|
139
|
+
//# sourceMappingURL=SelectMenu-Bce_PClo.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
|
|
3
3
|
import { StringSelectMenuBuilder, StringSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
4
|
//#region src/components/interactive/select-menu/StringSelectMenuKit.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Type for the handler function that is called when the string select menu is submitted.
|
|
@@ -63,4 +62,4 @@ declare class StringSelectMenuKit extends StringSelectMenuBuilder {
|
|
|
63
62
|
}
|
|
64
63
|
//#endregion
|
|
65
64
|
export { StringSelectMenuKit as n, StringSelectMenuKitPredicate as r, OnStringSelectMenuKitSubmit as t };
|
|
66
|
-
//# sourceMappingURL=StringSelectMenuKit-
|
|
65
|
+
//# sourceMappingURL=StringSelectMenuKit-CBeB9HqT.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as ParsedCommandData } from "./CommandsRouter-Co225Ae5.js";
|
|
2
|
+
import { i as EventsTree } from "./EventsRouter-Bt63ZuEF.js";
|
|
3
|
+
//#region src/app/router/TreeArtifact.d.ts
|
|
4
|
+
declare const ROUTER_TREE_ARTIFACT_SCHEMA_VERSION = 1;
|
|
5
|
+
declare const ROUTER_TREE_ARTIFACT_FILE = "router-tree.json";
|
|
6
|
+
declare const ROUTER_TREE_ARTIFACT_DIRECTORY = ".commandkit";
|
|
7
|
+
interface RouterTreeArtifact {
|
|
8
|
+
schemaVersion: number;
|
|
9
|
+
commandkitVersion: string;
|
|
10
|
+
generatedAt: string;
|
|
11
|
+
commands: ParsedCommandData;
|
|
12
|
+
events: EventsTree;
|
|
13
|
+
}
|
|
14
|
+
declare function createRouterTreeArtifact(options: {
|
|
15
|
+
outputRoot: string;
|
|
16
|
+
commandkitVersion: string;
|
|
17
|
+
commands: ParsedCommandData;
|
|
18
|
+
events: EventsTree;
|
|
19
|
+
}): RouterTreeArtifact;
|
|
20
|
+
declare function validateRouterTreeArtifact(input: unknown, runtimeVersion: string): input is RouterTreeArtifact;
|
|
21
|
+
declare function hydrateRouterTreeArtifact(artifact: RouterTreeArtifact, outputRoot: string): {
|
|
22
|
+
commands: ParsedCommandData;
|
|
23
|
+
events: EventsTree;
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { createRouterTreeArtifact as a, RouterTreeArtifact as i, ROUTER_TREE_ARTIFACT_FILE as n, hydrateRouterTreeArtifact as o, ROUTER_TREE_ARTIFACT_SCHEMA_VERSION as r, validateRouterTreeArtifact as s, ROUTER_TREE_ARTIFACT_DIRECTORY as t };
|
|
27
|
+
//# sourceMappingURL=TreeArtifact-D6FZ5SVd.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
|
|
3
3
|
import { UserSelectMenuBuilder, UserSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
4
|
//#region src/components/interactive/select-menu/UserSelectMenuKit.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Type for the handler function that is called when the user select menu is submitted.
|
|
@@ -63,4 +62,4 @@ declare class UserSelectMenuKit extends UserSelectMenuBuilder {
|
|
|
63
62
|
}
|
|
64
63
|
//#endregion
|
|
65
64
|
export { UserSelectMenuKit as n, UserSelectMenuKitPredicate as r, OnUserSelectMenuKitSubmit as t };
|
|
66
|
-
//# sourceMappingURL=UserSelectMenuKit-
|
|
65
|
+
//# sourceMappingURL=UserSelectMenuKit-DZmeZ_Tp.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FilterFunction, t as AnalyticsEngine } from "../analytics-engine-
|
|
1
|
+
import { n as FilterFunction, t as AnalyticsEngine } from "../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { AnalyticsEngine, FilterFunction };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_commandkit = require('../commandkit-
|
|
2
|
+
const require_commandkit = require('../commandkit-DNbfLwyR.js');
|
|
3
3
|
|
|
4
4
|
exports.AnalyticsEngine = require_commandkit.AnalyticsEngine;
|