commandkit 1.2.0-rc.12 → 1.2.0-rc.14
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/{COPYING.md → LICENSE.md} +3 -3
- package/README.md +3 -3
- package/bin/index.mjs +1 -1
- package/cli.d.ts +19 -0
- package/config.cjs +3 -0
- package/config.d.ts +1 -0
- package/dist/{ActionRow-uJxU4UGo.js → ActionRow-CSN_UKmM.js} +2 -3
- package/dist/{ActionRow-uJxU4UGo.js.map → ActionRow-CSN_UKmM.js.map} +1 -1
- package/dist/{ActionRow-B-7n9MMr.d.ts → ActionRow-CT-uyxW0.d.ts} +3 -4
- package/dist/{Button-RMp-w8HV.d.ts → Button-oMnlpF6W.d.ts} +6 -7
- package/dist/{ButtonKit-9k4yfhYD.d.ts → ButtonKit-DKu0VAe4.d.ts} +36 -37
- package/dist/ChannelSelectMenuKit-HQZ4hH5s.d.ts +66 -0
- package/dist/{CommandKitEventsChannel-2l9Za-le.js → CommandKitEventsChannel-DDI0UVh9.js} +2 -2
- package/dist/{CommandKitEventsChannel-2l9Za-le.js.map → CommandKitEventsChannel-DDI0UVh9.js.map} +1 -1
- package/dist/{CommandsRouter-CBdsqaWK.d.ts → CommandsRouter-C7dZEepB.d.ts} +49 -50
- package/dist/{CommandsRouter-CWMipIis.js → CommandsRouter-D5mGRFEr.js} +2 -6
- package/dist/{CommandsRouter-CWMipIis.js.map → CommandsRouter-D5mGRFEr.js.map} +1 -1
- package/dist/{CompilerPlugin-CZ4412Zm.js → CompilerPlugin-DZidFuHJ.js} +2 -2
- package/dist/{CompilerPlugin-CZ4412Zm.js.map → CompilerPlugin-DZidFuHJ.js.map} +1 -1
- package/dist/{EventInterceptor-x-R2qshQ.d.ts → EventInterceptor-CZmWpS08.d.ts} +40 -40
- package/dist/{EventInterceptor-BWoEJMHZ.js → EventInterceptor-CxA95XYA.js} +1 -1
- package/dist/{EventInterceptor-BWoEJMHZ.js.map → EventInterceptor-CxA95XYA.js.map} +1 -1
- package/dist/{EventWorkerContext-D_9q1Bm2.js → EventWorkerContext-CfqamFWu.js} +2 -3
- package/dist/{EventWorkerContext-D_9q1Bm2.js.map → EventWorkerContext-CfqamFWu.js.map} +1 -1
- package/dist/{EventsRouter-C04XqRKf.js → EventsRouter-Be5NDOX4.js} +2 -6
- package/dist/{EventsRouter-C04XqRKf.js.map → EventsRouter-Be5NDOX4.js.map} +1 -1
- package/dist/EventsRouter-DZ37r54v.d.ts +90 -0
- package/dist/MentionableSelectMenuKit-7URDUM3-.d.ts +61 -0
- package/dist/{MessageCommandParser-CKh-tM97.js → MessageCommandParser-VMFFGs0R.js} +2 -3
- package/dist/{MessageCommandParser-CKh-tM97.js.map → MessageCommandParser-VMFFGs0R.js.map} +1 -1
- package/dist/MessageCommandParser-q3dQcE5N.d.ts +194 -0
- package/dist/{Modal-Calb46SJ.d.ts → Modal--iMEUqSm.d.ts} +20 -10
- package/dist/{ModalKit-Cq2ns6jv.d.ts → ModalKit-BWXI3Z26.d.ts} +33 -34
- package/dist/{PluginCommon-CPWV5xuX.js → PluginCommon-Bfs8d9s7.js} +6 -7
- package/dist/{PluginCommon-CPWV5xuX.js.map → PluginCommon-Bfs8d9s7.js.map} +1 -1
- package/dist/RoleSelectMenuKit-BY-JJ18w.d.ts +66 -0
- package/dist/{RuntimePlugin-COeXe8rP.js → RuntimePlugin-BYQXQO8w.js} +2 -2
- package/dist/{RuntimePlugin-COeXe8rP.js.map → RuntimePlugin-BYQXQO8w.js.map} +1 -1
- package/dist/{SelectMenu-VcDhOGoJ.d.ts → SelectMenu-DQbmOp1Y.d.ts} +16 -13
- package/dist/StringSelectMenuKit-lVhUMc3g.d.ts +66 -0
- package/dist/UserSelectMenuKit-CCj4Fpkr.d.ts +66 -0
- package/dist/analytics/analytics-engine.d.ts +1 -33
- package/dist/analytics/analytics-engine.js +19 -39
- package/dist/analytics/analytics-provider.d.ts +1 -33
- package/dist/analytics/constants.js +1 -1
- package/dist/analytics/utils.js +19 -39
- package/dist/{analytics-engine-NOInIjv8.d.ts → analytics-engine-_urJ5QTH.d.ts} +850 -842
- package/dist/app/commands/AppCommandRunner.d.ts +1 -33
- package/dist/app/commands/AppCommandRunner.js +19 -39
- package/dist/app/commands/Context.d.ts +1 -33
- package/dist/app/commands/Context.js +19 -39
- package/dist/app/commands/MessageCommandParser.d.ts +1 -1
- package/dist/app/commands/MessageCommandParser.js +1 -2
- package/dist/app/commands/helpers.d.ts +1 -1
- package/dist/app/commands/helpers.js +1 -1
- package/dist/app/events/EventWorkerContext.d.ts +42 -35
- package/dist/app/events/EventWorkerContext.js +1 -1
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -33
- package/dist/app/handlers/AppCommandHandler.js +19 -39
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -33
- package/dist/app/handlers/AppEventsHandler.js +19 -39
- package/dist/app/index.d.ts +4 -33
- package/dist/app/index.js +19 -40
- package/dist/app/interrupt/signals.d.ts +1 -1
- package/dist/app/interrupt/signals.js +2 -3
- package/dist/app/middlewares/permissions.d.ts +1 -33
- package/dist/app/middlewares/permissions.js +19 -39
- package/dist/app/register/CommandRegistrar.d.ts +1 -33
- package/dist/app/register/CommandRegistrar.js +19 -39
- package/dist/app/router/CommandsRouter.d.ts +1 -1
- package/dist/app/router/CommandsRouter.js +1 -1
- package/dist/app/router/EventsRouter.d.ts +1 -1
- package/dist/app/router/EventsRouter.js +1 -1
- package/dist/app/router/index.d.ts +2 -3
- package/dist/app/router/index.js +3 -3
- package/dist/{chunk-nOFOJqeH.js → chunk-kSYXY2_d.js} +10 -6
- package/dist/cli/app-process.d.ts +0 -1
- package/dist/cli/app-process.js +62 -7
- package/dist/cli/app-process.js.map +1 -0
- package/dist/cli/build.d.ts +2 -33
- package/dist/cli/build.js +186 -44
- package/dist/cli/build.js.map +1 -0
- package/dist/cli/common.d.ts +1 -33
- package/dist/cli/common.js +4 -4
- package/dist/cli/development.d.ts +18 -1
- package/dist/cli/development.js +38 -51
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.d.ts +4 -0
- package/dist/cli/env.js +1 -1
- package/dist/cli/generators.js +5 -8
- 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 +12 -2
- package/dist/cli/init.js +97 -41
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/production.d.ts +0 -1
- package/dist/cli/production.js +33 -51
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +5 -5
- package/dist/cli/utils.d.ts +0 -1
- package/dist/cli/utils.js +17 -2
- package/dist/cli/utils.js.map +1 -0
- package/dist/{colors-DL3ucTiT.js → colors-Csc0X4QJ.js} +2 -3
- package/dist/{colors-DL3ucTiT.js.map → colors-Csc0X4QJ.js.map} +1 -1
- package/dist/{commandkit-DabqpQ6v.js → commandkit-B1_NP74k.js} +3187 -2630
- package/dist/commandkit-B1_NP74k.js.map +1 -0
- package/dist/commandkit.d.ts +1 -33
- package/dist/commandkit.js +19 -39
- package/dist/{common-DHTTnX82.d.ts → common-DnwCYit8.d.ts} +3 -4
- package/dist/{common-fIO6fqGZ.js → common-zQwj90Nz.js} +9 -12
- package/dist/{common-fIO6fqGZ.js.map → common-zQwj90Nz.js.map} +1 -1
- package/dist/components/common/EventInterceptor.d.ts +1 -1
- package/dist/components/common/EventInterceptor.js +1 -1
- package/dist/components/common/element.d.ts +2 -5
- package/dist/components/common/element.js +27 -8
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/common/types.js +0 -1
- package/dist/components/display/common.d.ts +0 -1
- package/dist/components/display/common.js +20 -2
- package/dist/components/display/container.d.ts +1 -1
- package/dist/components/display/container.js +20 -3
- package/dist/components/display/file.d.ts +1 -1
- package/dist/components/display/file.js +1 -1
- package/dist/components/display/index.d.ts +8 -9
- package/dist/components/display/index.js +25 -16
- package/dist/components/display/label.d.ts +1 -1
- package/dist/components/display/label.js +20 -3
- package/dist/components/display/media-gallery.d.ts +1 -1
- package/dist/components/display/media-gallery.js +21 -4
- package/dist/components/display/poll.d.ts +1 -1
- package/dist/components/display/poll.js +1 -1
- package/dist/components/display/section.d.ts +1 -1
- package/dist/components/display/section.js +21 -4
- package/dist/components/display/separator.d.ts +1 -1
- package/dist/components/display/separator.js +1 -1
- package/dist/components/display/text-display.d.ts +1 -1
- package/dist/components/display/text-display.js +1 -1
- package/dist/components/index.d.ts +23 -26
- package/dist/components/index.js +34 -52
- package/dist/components/interactive/action-row/ActionRow.d.ts +1 -5
- package/dist/components/interactive/action-row/ActionRow.js +1 -1
- package/dist/components/interactive/button/Button.d.ts +1 -6
- package/dist/components/interactive/button/Button.js +19 -39
- package/dist/components/interactive/button/ButtonKit.d.ts +1 -2
- package/dist/components/interactive/button/ButtonKit.js +19 -39
- package/dist/components/interactive/modal/Modal.d.ts +2 -7
- package/dist/components/interactive/modal/Modal.js +20 -39
- package/dist/components/interactive/modal/ModalKit.d.ts +1 -2
- package/dist/components/interactive/modal/ModalKit.js +19 -39
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -3
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +19 -39
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -3
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +19 -39
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -3
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +19 -39
- package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -9
- package/dist/components/interactive/select-menu/SelectMenu.js +19 -39
- package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -3
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +19 -39
- package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -3
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +19 -39
- package/dist/components/interactive/select-menu/common.d.ts +1 -2
- package/dist/components/interactive/select-menu/common.js +0 -1
- package/dist/config/config.d.ts +15 -35
- package/dist/config/config.js +19 -39
- package/dist/config/default.d.ts +1 -33
- package/dist/config/default.js +19 -39
- package/dist/config/loader.d.ts +1 -33
- package/dist/config/loader.js +19 -39
- package/dist/config/types.d.ts +1 -33
- package/dist/config/utils.d.ts +1 -33
- package/dist/config/utils.js +1 -1
- package/dist/{constants-D0dawKxO.js → constants-BA0TJU6e.js} +2 -3
- package/dist/{constants-D0dawKxO.js.map → constants-BA0TJU6e.js.map} +1 -1
- package/dist/constants-BS9N2avz.js +27 -0
- package/dist/{constants-AH-9qJ89.js.map → constants-BS9N2avz.js.map} +1 -1
- package/dist/{constants-BMWH2YUr.js → constants-CeIMhMD0.js} +16 -1
- package/dist/constants-CeIMhMD0.js.map +1 -0
- package/dist/{constants-DqnSDZ6l.d.ts → constants-CuYW0K10.d.ts} +14 -8
- package/dist/{constants-CCFSX2NG.d.ts → constants-EpKcj0dH.d.ts} +2 -2
- package/dist/{container-1ltvkavy.d.ts → container-DYcb7zGw.d.ts} +2 -3
- package/dist/context/async-context.d.ts +1 -33
- package/dist/context/async-context.js +19 -39
- package/dist/context/environment.d.ts +1 -33
- package/dist/context/environment.js +19 -39
- package/dist/{element-CvNhvLZ8.d.ts → element-DZeqbSTk.d.ts} +5 -5
- package/dist/{env-8yY-6pbC.js → env-FxaiNasU.js} +7 -3
- package/dist/env-FxaiNasU.js.map +1 -0
- package/dist/error-codes-Ds0bnPvT.js.map +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +1 -33
- package/dist/events/CommandKitEventsChannel.js +1 -1
- package/dist/{file-n2yl_-vl.d.ts → file-CrV4lSnl.d.ts} +2 -3
- package/dist/{file-DAUOZYhC.js → file-DqI3v90P.js} +2 -3
- package/dist/{file-DAUOZYhC.js.map → file-DqI3v90P.js.map} +1 -1
- package/dist/flags/FlagProvider.d.ts +1 -33
- package/dist/flags/feature-flags.d.ts +1 -33
- package/dist/flags/feature-flags.js +22 -43
- package/dist/flags/store.d.ts +1 -33
- package/dist/flags/store.js +1 -1
- package/dist/{helpers-hDh_tMb6.d.ts → helpers-AQPLVY35.d.ts} +2 -3
- package/dist/{helpers-D2_1jih6.js → helpers-DSy7EjzP.js} +2 -3
- package/dist/{helpers-D2_1jih6.js.map → helpers-DSy7EjzP.js.map} +1 -1
- package/dist/index.d.ts +41 -44
- package/dist/index.js +49 -68
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/constants.js +1 -1
- package/dist/kv/dotprops.js +25 -3
- package/dist/kv/dotprops.js.map +1 -0
- package/dist/kv/kv.d.ts +289 -290
- package/dist/kv/kv.js +14 -16
- package/dist/kv/kv.js.map +1 -1
- package/dist/kv/serde.d.ts +12 -3
- package/dist/kv/serde.js +86 -4
- package/dist/kv/serde.js.map +1 -0
- package/dist/{label-D0KXeBhk.d.ts → label-37kaNWMH.d.ts} +4 -5
- package/dist/logger/DefaultLogger.d.ts +66 -3
- package/dist/logger/DefaultLogger.js +19 -39
- package/dist/logger/ILogger.d.ts +64 -2
- package/dist/logger/ILogger.js +0 -1
- package/dist/logger/Logger.d.ts +36 -3
- package/dist/logger/Logger.js +19 -39
- package/dist/logger/NoopLogger.d.ts +36 -37
- package/dist/{media-gallery-BzG70ued.d.ts → media-gallery-Ci3I4ElH.d.ts} +2 -3
- package/dist/plugins/CompilerPlugin.d.ts +1 -33
- package/dist/plugins/CompilerPlugin.js +1 -2
- package/dist/plugins/PluginCommon.d.ts +1 -33
- package/dist/plugins/PluginCommon.js +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -33
- package/dist/plugins/RuntimePlugin.js +1 -2
- package/dist/plugins/index.d.ts +1 -33
- package/dist/plugins/index.js +21 -39
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -33
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +19 -39
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -33
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +19 -39
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -33
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +19 -39
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -33
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +19 -39
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -33
- package/dist/plugins/plugin-runtime/runtime.js +0 -1
- package/dist/plugins/types.d.ts +1 -33
- package/dist/plugins/types.js +0 -1
- package/dist/{poll-HnaJcB0o.d.ts → poll-Ddtapd6n.d.ts} +8 -9
- package/dist/{poll-Bc6rjeUS.js → poll-ziQQQbMU.js} +12 -13
- package/dist/{poll-Bc6rjeUS.js.map → poll-ziQQQbMU.js.map} +1 -1
- package/dist/{resolve-file-url-CJoD0FAn.js → resolve-file-url-BmjHzIKe.js} +2 -2
- package/dist/{resolve-file-url-CJoD0FAn.js.map → resolve-file-url-BmjHzIKe.js.map} +1 -1
- package/dist/{section-BOaJKXiy.d.ts → section-DkUKULnB.d.ts} +2 -3
- package/dist/{separator-Cb7-6T6N.d.ts → separator-CbXsIFCa.d.ts} +2 -3
- package/dist/{separator-C___2K-f.js → separator-DGwA_b1J.js} +2 -3
- package/dist/{separator-C___2K-f.js.map → separator-DGwA_b1J.js.map} +1 -1
- package/dist/{signals-DBS60vTo.d.ts → signals-BbTgTc0i.d.ts} +2 -2
- package/dist/{signals-Cnqe9dFV.js → signals-ewEPW2cO.js} +2 -2
- package/dist/{signals-Cnqe9dFV.js.map → signals-ewEPW2cO.js.map} +1 -1
- package/dist/{store-ZwL2gN6a.js → store-DK4JA-fQ.js} +2 -3
- package/dist/{store-ZwL2gN6a.js.map → store-DK4JA-fQ.js.map} +1 -1
- package/dist/{text-display-BtQR88kY.js → text-display-BVuG7dT-.js} +2 -3
- package/dist/{text-display-BtQR88kY.js.map → text-display-BVuG7dT-.js.map} +1 -1
- package/dist/{text-display-B_hpz50P.d.ts → text-display-D7j39VC-.d.ts} +2 -3
- package/dist/{type-checker-CEFHoQoV.js → type-checker-CFpKDDs8.js} +4 -6
- package/dist/{type-checker-CEFHoQoV.js.map → type-checker-CFpKDDs8.js.map} +1 -1
- package/dist/{types-CJ-XvOFN.d.ts → types-BywA9d2Z.d.ts} +2 -2
- package/dist/{types-package-D11rQXLs.js → types-package-Bjh_ap0V.js} +3 -6
- package/dist/{types-package-D11rQXLs.js.map → types-package-Bjh_ap0V.js.map} +1 -1
- package/dist/types.d.ts +1 -33
- package/dist/utils/colors.js +1 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +3 -2
- package/dist/utils/dev-hooks.d.ts +1 -33
- package/dist/utils/dev-hooks.js +19 -39
- package/dist/utils/error-codes.d.ts +54 -2
- package/dist/utils/resolve-file-url.d.ts +11 -2
- package/dist/utils/resolve-file-url.js +1 -1
- package/dist/utils/types-package.js +2 -2
- package/dist/utils/useful-stuff/async-queue.d.ts +21 -21
- package/dist/utils/useful-stuff/mutex.d.ts +62 -62
- package/dist/utils/useful-stuff/ratelimiter.d.ts +56 -56
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.d.ts +82 -82
- package/dist/utils/utilities.d.ts +113 -2
- package/dist/utils/utilities.js +22 -40
- package/dist/utils/warning.js +1 -1
- package/dist/{utils-Br3eenD1.js → utils-CVaVycsK.js} +1 -1
- package/dist/{utils-Br3eenD1.js.map → utils-CVaVycsK.js.map} +1 -1
- package/dist/{version-DC4j2ZwU.js → version-DNg-wh2E.js} +2 -2
- package/dist/{version-DC4j2ZwU.js.map → version-DNg-wh2E.js.map} +1 -1
- package/dist/version.d.ts +8 -2
- package/dist/version.js +1 -1
- package/dist/{warning-CszH8HeS.js → warning-BWiQltHE.js} +1 -1
- package/dist/{warning-CszH8HeS.js.map → warning-BWiQltHE.js.map} +1 -1
- package/hooks.cjs +11 -4
- package/package.json +14 -7
- package/dist/ChannelSelectMenuKit-CsYgIyKe.d.ts +0 -67
- package/dist/DefaultLogger-CHMVsizQ.d.ts +0 -67
- package/dist/EventWorkerContext-CLhZRHhH.d.ts +0 -43
- package/dist/EventsRouter-4pT6vj-U.d.ts +0 -90
- package/dist/ILogger-BQ2ew4zR.d.ts +0 -64
- package/dist/Logger-DyV7oli4.d.ts +0 -37
- package/dist/MentionableSelectMenuKit-CO9phWMf.d.ts +0 -62
- package/dist/MessageCommandParser-DEOl_ifb.d.ts +0 -195
- package/dist/RoleSelectMenuKit-DvBxzpWh.d.ts +0 -67
- package/dist/StringSelectMenuKit-CJ0MzUZJ.d.ts +0 -67
- package/dist/UserSelectMenuKit-C_J-9RJs.d.ts +0 -67
- package/dist/app-process-AQ3Cbf6j.js +0 -68
- package/dist/app-process-AQ3Cbf6j.js.map +0 -1
- package/dist/build-BYMHMOl_.js +0 -173
- package/dist/build-BYMHMOl_.js.map +0 -1
- package/dist/commandkit-DabqpQ6v.js.map +0 -1
- package/dist/common-CCx-FJI4.js +0 -17
- package/dist/common-CCx-FJI4.js.map +0 -1
- package/dist/config-DbgXt6mf.d.ts +0 -16
- package/dist/constants-AH-9qJ89.js +0 -27
- package/dist/constants-BMWH2YUr.js.map +0 -1
- package/dist/container-DC0eQigs.js +0 -44
- package/dist/container-DC0eQigs.js.map +0 -1
- package/dist/dotprops-DvJUE8fw.js +0 -36
- package/dist/dotprops-DvJUE8fw.js.map +0 -1
- package/dist/element-DibzzA5L.js +0 -84
- package/dist/element-DibzzA5L.js.map +0 -1
- package/dist/env-8yY-6pbC.js.map +0 -1
- package/dist/error-codes-BiNRVMiV.d.ts +0 -54
- package/dist/feature-flags-BoBV4Dsj.js +0 -160
- package/dist/feature-flags-BoBV4Dsj.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-CBb0StSB.js +0 -91
- package/dist/init-CBb0StSB.js.map +0 -1
- package/dist/init-DSYckXwx.d.ts +0 -13
- package/dist/label-D-uJWRZ0.js +0 -36
- package/dist/label-D-uJWRZ0.js.map +0 -1
- package/dist/media-gallery-BLhwe5lO.js +0 -62
- package/dist/media-gallery-BLhwe5lO.js.map +0 -1
- package/dist/resolve-file-url-DFtR8jRR.d.ts +0 -11
- package/dist/section-BMcHN97i.js +0 -60
- package/dist/section-BMcHN97i.js.map +0 -1
- package/dist/serde-D4H23l2F.d.ts +0 -12
- package/dist/serde-DHHwhltz.js +0 -97
- package/dist/serde-DHHwhltz.js.map +0 -1
- package/dist/types-Cdh4uaFR.js +0 -0
- package/dist/types-TC4g3w91.js +0 -0
- package/dist/utilities-CQUaua43.d.ts +0 -87
- package/dist/utils-Bf-3Eevb.js +0 -23
- package/dist/utils-Bf-3Eevb.js.map +0 -1
- package/dist/version-DggMfP_1.d.ts +0 -8
- /package/dist/{ILogger-B0q7p7L1.js → ILogger-JI8VGyJf.js} +0 -0
- /package/dist/{app-CrjK9yWX.js → common-vGj3fpz3.js} +0 -0
- /package/dist/{index-B5F3AfVc.d.ts → index-BJfko-dP.d.ts} +0 -0
- /package/dist/{index-BLwMeReG.d.ts → index-CCggO_hw.d.ts} +0 -0
- /package/dist/{index-h64gcVNJ.d.ts → index-CLjpoGi1.d.ts} +0 -0
- /package/dist/{common-0Iw8ZeM6.js → router-CtcApqrw.js} +0 -0
- /package/dist/{display-WDb9wMCv.js → runtime-UJIpkNww.js} +0 -0
- /package/dist/{router-BvamdzoF.js → types-Bx1EKe0v.js} +0 -0
- /package/dist/{runtime-Skt5NiOc.js → types-CAwOz52q.js} +0 -0
package/dist/config/loader.js
CHANGED
|
@@ -1,42 +1,22 @@
|
|
|
1
|
-
require('../colors-
|
|
2
|
-
require('../ActionRow-
|
|
3
|
-
require('../
|
|
4
|
-
|
|
5
|
-
require('../
|
|
6
|
-
require('../
|
|
7
|
-
require('../
|
|
8
|
-
require('../
|
|
9
|
-
require('../
|
|
10
|
-
require('../
|
|
11
|
-
require('../
|
|
12
|
-
require('../
|
|
13
|
-
require('../
|
|
14
|
-
require('../
|
|
15
|
-
require('../
|
|
16
|
-
require('../display-
|
|
17
|
-
require('../
|
|
18
|
-
require('../
|
|
19
|
-
require('../
|
|
20
|
-
require('../constants-BMWH2YUr.js');
|
|
21
|
-
require('../PluginCommon-CPWV5xuX.js');
|
|
22
|
-
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
|
-
require('../RuntimePlugin-COeXe8rP.js');
|
|
24
|
-
require('../types-Cdh4uaFR.js');
|
|
25
|
-
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
|
-
require('../runtime-Skt5NiOc.js');
|
|
27
|
-
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-D11rQXLs.js');
|
|
29
|
-
require('../constants-D0dawKxO.js');
|
|
30
|
-
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
|
-
require('../signals-Cnqe9dFV.js');
|
|
32
|
-
require('../helpers-D2_1jih6.js');
|
|
33
|
-
require('../MessageCommandParser-CKh-tM97.js');
|
|
34
|
-
require('../CommandsRouter-CWMipIis.js');
|
|
35
|
-
require('../EventsRouter-C04XqRKf.js');
|
|
36
|
-
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-fIO6fqGZ.js');
|
|
38
|
-
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
|
-
require('../store-ZwL2gN6a.js');
|
|
1
|
+
require('../colors-Csc0X4QJ.js');
|
|
2
|
+
require('../ActionRow-CSN_UKmM.js');
|
|
3
|
+
const require_commandkit = require('../commandkit-B1_NP74k.js');
|
|
4
|
+
require('../constants-CeIMhMD0.js');
|
|
5
|
+
require('../types-package-Bjh_ap0V.js');
|
|
6
|
+
require('../constants-BA0TJU6e.js');
|
|
7
|
+
require('../EventWorkerContext-CfqamFWu.js');
|
|
8
|
+
require('../signals-ewEPW2cO.js');
|
|
9
|
+
require('../helpers-DSy7EjzP.js');
|
|
10
|
+
require('../MessageCommandParser-VMFFGs0R.js');
|
|
11
|
+
require('../CommandsRouter-D5mGRFEr.js');
|
|
12
|
+
require('../EventsRouter-Be5NDOX4.js');
|
|
13
|
+
require('../router-CtcApqrw.js');
|
|
14
|
+
require('../file-DqI3v90P.js');
|
|
15
|
+
require('../separator-DGwA_b1J.js');
|
|
16
|
+
require('../text-display-BVuG7dT-.js');
|
|
17
|
+
require('../poll-ziQQQbMU.js');
|
|
18
|
+
require('../common-zQwj90Nz.js');
|
|
19
|
+
require('../store-DK4JA-fQ.js');
|
|
40
20
|
|
|
41
21
|
exports.getPossibleConfigPaths = require_commandkit.getPossibleConfigPaths;
|
|
42
22
|
exports.loadConfigFile = require_commandkit.loadConfigFile;
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-9k4yfhYD.js";
|
|
4
|
-
import "../ModalKit-Cq2ns6jv.js";
|
|
5
|
-
import "../element-CvNhvLZ8.js";
|
|
6
|
-
import "../ActionRow-B-7n9MMr.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-RMp-w8HV.js";
|
|
9
|
-
import "../Modal-Calb46SJ.js";
|
|
10
|
-
import "../common-DHTTnX82.js";
|
|
11
|
-
import "../StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
-
import "../UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
-
import "../RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
-
import "../SelectMenu-VcDhOGoJ.js";
|
|
17
|
-
import "../container-1ltvkavy.js";
|
|
18
|
-
import "../file-n2yl_-vl.js";
|
|
19
|
-
import "../media-gallery-BzG70ued.js";
|
|
20
|
-
import "../section-BOaJKXiy.js";
|
|
21
|
-
import "../separator-Cb7-6T6N.js";
|
|
22
|
-
import "../text-display-B_hpz50P.js";
|
|
23
|
-
import "../label-D0KXeBhk.js";
|
|
24
|
-
import "../poll-HnaJcB0o.js";
|
|
25
|
-
import "../index-h64gcVNJ.js";
|
|
26
|
-
import "../index-BLwMeReG.js";
|
|
27
|
-
import "../MessageCommandParser-DEOl_ifb.js";
|
|
28
|
-
import "../signals-DBS60vTo.js";
|
|
29
|
-
import "../helpers-hDh_tMb6.js";
|
|
30
|
-
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
|
-
import "../EventsRouter-4pT6vj-U.js";
|
|
32
|
-
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-DqnSDZ6l.js";
|
|
1
|
+
import { _ as CommandKitConfig, g as CommandKitCompilerOptions } from "../analytics-engine-_urJ5QTH.js";
|
|
34
2
|
export { CommandKitCompilerOptions, CommandKitConfig };
|
package/dist/config/utils.d.ts
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import { DeepPartial,
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-9k4yfhYD.js";
|
|
4
|
-
import "../ModalKit-Cq2ns6jv.js";
|
|
5
|
-
import "../element-CvNhvLZ8.js";
|
|
6
|
-
import "../ActionRow-B-7n9MMr.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-RMp-w8HV.js";
|
|
9
|
-
import "../Modal-Calb46SJ.js";
|
|
10
|
-
import "../common-DHTTnX82.js";
|
|
11
|
-
import "../StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
-
import "../UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
-
import "../RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
-
import "../SelectMenu-VcDhOGoJ.js";
|
|
17
|
-
import "../container-1ltvkavy.js";
|
|
18
|
-
import "../file-n2yl_-vl.js";
|
|
19
|
-
import "../media-gallery-BzG70ued.js";
|
|
20
|
-
import "../section-BOaJKXiy.js";
|
|
21
|
-
import "../separator-Cb7-6T6N.js";
|
|
22
|
-
import "../text-display-B_hpz50P.js";
|
|
23
|
-
import "../label-D0KXeBhk.js";
|
|
24
|
-
import "../poll-HnaJcB0o.js";
|
|
25
|
-
import "../index-h64gcVNJ.js";
|
|
26
|
-
import "../index-BLwMeReG.js";
|
|
27
|
-
import "../MessageCommandParser-DEOl_ifb.js";
|
|
28
|
-
import "../signals-DBS60vTo.js";
|
|
29
|
-
import "../helpers-hDh_tMb6.js";
|
|
30
|
-
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
|
-
import "../EventsRouter-4pT6vj-U.js";
|
|
32
|
-
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-DqnSDZ6l.js";
|
|
1
|
+
import { f as DeepPartial, h as mergeDeep, m as ResolvedCommandKitConfig, p as DeepRequired } from "../analytics-engine-_urJ5QTH.js";
|
|
34
2
|
export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
|
package/dist/config/utils.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
1
|
+
const require_chunk = require('./chunk-kSYXY2_d.js');
|
|
2
2
|
let node_crypto = require("node:crypto");
|
|
3
|
-
node_crypto = require_chunk.__toESM(node_crypto);
|
|
4
3
|
|
|
5
4
|
//#region src/analytics/constants.ts
|
|
6
5
|
/**
|
|
@@ -34,4 +33,4 @@ Object.defineProperty(exports, 'DO_NOT_TRACK_KEY', {
|
|
|
34
33
|
return DO_NOT_TRACK_KEY;
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
|
-
//# sourceMappingURL=constants-
|
|
36
|
+
//# sourceMappingURL=constants-BA0TJU6e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-BA0TJU6e.js","names":[],"sources":["../src/analytics/constants.ts"],"sourcesContent":["import { randomUUID } from 'node:crypto';\n\n/**\n * @private\n * @internal\n */\nexport const DO_NOT_TRACK_KEY = `COMMANDKIT_ANALYTICS__DO_NOT_TRACK::${randomUUID()}`;\n\n/**\n * The analytics events that are used in CommandKit.\n * These events are used to track various actions and metrics within the CommandKit framework.\n */\nexport const AnalyticsEvents = {\n // commands\n COMMAND_EXECUTION: 'command_execution',\n // feature flags\n FEATURE_FLAG_METRICS: 'feature_flag_metrics',\n FEATURE_FLAG_DECISION: 'feature_flag_decision',\n // @commandkit/cache\n CACHE_HIT: 'cache_hit',\n CACHE_MISS: 'cache_miss',\n CACHE_REVALIDATED: 'cache_revalidated',\n} as const;\n\n/**\n * The type of analytics events that can be tracked in CommandKit.\n * This type is derived from the keys of the `AnalyticsEvents` object.\n * It ensures that only valid analytics events can be used in the tracking functions.\n */\nexport type AnalyticsEvent =\n (typeof AnalyticsEvents)[keyof typeof AnalyticsEvents];\n"],"mappings":";;;;;;;;AAMA,MAAa,mBAAmB,oEAAmD;;;;;AAMnF,MAAa,kBAAkB;CAE7B,mBAAmB;CAEnB,sBAAsB;CACtB,uBAAuB;CAEvB,WAAW;CACX,YAAY;CACZ,mBAAmB;CACpB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/kv/constants.ts
|
|
3
|
+
let SerializerType = /* @__PURE__ */ function(SerializerType) {
|
|
4
|
+
SerializerType[SerializerType["String"] = 0] = "String";
|
|
5
|
+
SerializerType[SerializerType["Number"] = 1] = "Number";
|
|
6
|
+
SerializerType[SerializerType["Boolean"] = 2] = "Boolean";
|
|
7
|
+
SerializerType[SerializerType["Object"] = 3] = "Object";
|
|
8
|
+
SerializerType[SerializerType["Date"] = 4] = "Date";
|
|
9
|
+
SerializerType[SerializerType["BigInt"] = 5] = "BigInt";
|
|
10
|
+
SerializerType[SerializerType["Null"] = 6] = "Null";
|
|
11
|
+
SerializerType[SerializerType["Undefined"] = 7] = "Undefined";
|
|
12
|
+
SerializerType[SerializerType["Array"] = 8] = "Array";
|
|
13
|
+
SerializerType[SerializerType["Map"] = 9] = "Map";
|
|
14
|
+
SerializerType[SerializerType["Set"] = 10] = "Set";
|
|
15
|
+
SerializerType[SerializerType["Buffer"] = 11] = "Buffer";
|
|
16
|
+
SerializerType[SerializerType["RegExp"] = 12] = "RegExp";
|
|
17
|
+
return SerializerType;
|
|
18
|
+
}({});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
Object.defineProperty(exports, 'SerializerType', {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return SerializerType;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=constants-BS9N2avz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-BS9N2avz.js","names":[],"sources":["../src/kv/constants.ts"],"sourcesContent":["export enum SerializerType {\n String,\n Number,\n Boolean,\n Object,\n Date,\n BigInt,\n Null,\n Undefined,\n Array,\n Map,\n Set,\n Buffer,\n RegExp,\n}\n"],"mappings":";;AAAA,IAAY,0DAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -17,6 +17,15 @@ const COMMANDKIT_IS_CLI = process.env.COMMANDKIT_IS_CLI === "true";
|
|
|
17
17
|
*/
|
|
18
18
|
const COMMANDKIT_IS_TEST = process.env.COMMANDKIT_IS_TEST === "true";
|
|
19
19
|
/**
|
|
20
|
+
* Indicates that CommandKit is running in a build-like environment.
|
|
21
|
+
* @private
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
function isBuildLikeEnvironment() {
|
|
25
|
+
if (process.env.COMMANDKIT_INTERNAL_IS_CLI_PROCESS === "true") return true;
|
|
26
|
+
return process.env.COMMANDKIT_IS_BUILD === "true";
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
20
29
|
* The current bootstrap mode of CommandKit.
|
|
21
30
|
* This can be 'development' or 'production'.
|
|
22
31
|
*/
|
|
@@ -67,4 +76,10 @@ Object.defineProperty(exports, 'HMREventType', {
|
|
|
67
76
|
return HMREventType;
|
|
68
77
|
}
|
|
69
78
|
});
|
|
70
|
-
|
|
79
|
+
Object.defineProperty(exports, 'isBuildLikeEnvironment', {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () {
|
|
82
|
+
return isBuildLikeEnvironment;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=constants-CeIMhMD0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-CeIMhMD0.js","names":[],"sources":["../src/utils/constants.ts"],"sourcesContent":["/**\n * The current working directory of the CommandKit instance.\n */\nexport const COMMANDKIT_CWD = process.env.COMMANDKIT_CWD || process.cwd();\n\n/**\n * Indicates whether CommandKit is running in development mode.\n */\nexport const COMMANDKIT_IS_DEV = process.env.COMMANDKIT_IS_DEV === 'true';\n\n/**\n * Indicates whether CommandKit is running in CLI thread.\n */\nexport const COMMANDKIT_IS_CLI = process.env.COMMANDKIT_IS_CLI === 'true';\n\n/**\n * Indicates whether CommandKit is running in test mode.\n */\nexport const COMMANDKIT_IS_TEST = process.env.COMMANDKIT_IS_TEST === 'true';\n\n/**\n * Indicates that CommandKit is running in a build-like environment.\n * @private\n * @internal\n */\nexport function isBuildLikeEnvironment() {\n const isCLI = process.env.COMMANDKIT_INTERNAL_IS_CLI_PROCESS === 'true';\n if (isCLI) return true;\n\n return process.env.COMMANDKIT_IS_BUILD === 'true';\n}\n\n/**\n * The current bootstrap mode of CommandKit.\n * This can be 'development' or 'production'.\n */\nexport const COMMANDKIT_BOOTSTRAP_MODE = (process.env\n .COMMANDKIT_BOOTSTRAP_MODE || 'development') as 'development' | 'production';\n\n/**\n * Types of Hot Module Replacement events\n */\nexport const HMREventType = {\n /**\n * HMR event for reloading commands.\n */\n ReloadCommands: 'reload-commands',\n /**\n * HMR event for reloading events.\n */\n ReloadEvents: 'reload-events',\n /**\n * HMR event for reloading unknown path, typically used by the plugins.\n */\n Unknown: 'unknown',\n} as const;\n\n/**\n * The type for HMR events.\n */\nexport type HMREventType = (typeof HMREventType)[keyof typeof HMREventType];\n"],"mappings":";;;;;AAGA,MAAa,iBAAiB,QAAQ,IAAI,kBAAkB,QAAQ,KAAK;;;;AAKzE,MAAa,oBAAoB,QAAQ,IAAI,sBAAsB;;;;AAKnE,MAAa,oBAAoB,QAAQ,IAAI,sBAAsB;;;;AAKnE,MAAa,qBAAqB,QAAQ,IAAI,uBAAuB;;;;;;AAOrE,SAAgB,yBAAyB;AAEvC,KADc,QAAQ,IAAI,uCAAuC,OACtD,QAAO;AAElB,QAAO,QAAQ,IAAI,wBAAwB;;;;;;AAO7C,MAAa,4BAA6B,QAAQ,IAClD,6BAA6B;;;;AAK7B,MAAa,eAAe;CAI1B,gBAAgB;CAIhB,cAAc;CAId,SAAS;CACV"}
|
|
@@ -15,6 +15,12 @@ declare const COMMANDKIT_IS_CLI: boolean;
|
|
|
15
15
|
* Indicates whether CommandKit is running in test mode.
|
|
16
16
|
*/
|
|
17
17
|
declare const COMMANDKIT_IS_TEST: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates that CommandKit is running in a build-like environment.
|
|
20
|
+
* @private
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
declare function isBuildLikeEnvironment(): boolean;
|
|
18
24
|
/**
|
|
19
25
|
* The current bootstrap mode of CommandKit.
|
|
20
26
|
* This can be 'development' or 'production'.
|
|
@@ -25,16 +31,16 @@ declare const COMMANDKIT_BOOTSTRAP_MODE: "development" | "production";
|
|
|
25
31
|
*/
|
|
26
32
|
declare const HMREventType: {
|
|
27
33
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
* HMR event for reloading commands.
|
|
35
|
+
*/
|
|
30
36
|
readonly ReloadCommands: "reload-commands";
|
|
31
37
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
* HMR event for reloading events.
|
|
39
|
+
*/
|
|
34
40
|
readonly ReloadEvents: "reload-events";
|
|
35
41
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
* HMR event for reloading unknown path, typically used by the plugins.
|
|
43
|
+
*/
|
|
38
44
|
readonly Unknown: "unknown";
|
|
39
45
|
};
|
|
40
46
|
/**
|
|
@@ -42,5 +48,5 @@ declare const HMREventType: {
|
|
|
42
48
|
*/
|
|
43
49
|
type HMREventType = (typeof HMREventType)[keyof typeof HMREventType];
|
|
44
50
|
//#endregion
|
|
45
|
-
export {
|
|
46
|
-
//# sourceMappingURL=constants-
|
|
51
|
+
export { COMMANDKIT_IS_TEST as a, COMMANDKIT_IS_DEV as i, COMMANDKIT_CWD as n, HMREventType as o, COMMANDKIT_IS_CLI as r, isBuildLikeEnvironment as s, COMMANDKIT_BOOTSTRAP_MODE as t };
|
|
52
|
+
//# sourceMappingURL=constants-CuYW0K10.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ColorResolvable, ComponentBuilder, ContainerBuilder, ContainerComponentData } from "discord.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/display/container.d.ts
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Represents the properties for a container component.
|
|
7
6
|
*/
|
|
@@ -21,5 +20,5 @@ interface ContainerProps extends Omit<ContainerComponentData, 'type' | 'componen
|
|
|
21
20
|
*/
|
|
22
21
|
declare function Container(props: ContainerProps): ContainerBuilder;
|
|
23
22
|
//#endregion
|
|
24
|
-
export {
|
|
25
|
-
//# sourceMappingURL=container-
|
|
23
|
+
export { ContainerProps as n, Container as t };
|
|
24
|
+
//# sourceMappingURL=container-DYcb7zGw.d.ts.map
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-9k4yfhYD.js";
|
|
4
|
-
import "../ModalKit-Cq2ns6jv.js";
|
|
5
|
-
import "../element-CvNhvLZ8.js";
|
|
6
|
-
import "../ActionRow-B-7n9MMr.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-RMp-w8HV.js";
|
|
9
|
-
import "../Modal-Calb46SJ.js";
|
|
10
|
-
import "../common-DHTTnX82.js";
|
|
11
|
-
import "../StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
-
import "../UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
-
import "../RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
-
import "../SelectMenu-VcDhOGoJ.js";
|
|
17
|
-
import "../container-1ltvkavy.js";
|
|
18
|
-
import "../file-n2yl_-vl.js";
|
|
19
|
-
import "../media-gallery-BzG70ued.js";
|
|
20
|
-
import "../section-BOaJKXiy.js";
|
|
21
|
-
import "../separator-Cb7-6T6N.js";
|
|
22
|
-
import "../text-display-B_hpz50P.js";
|
|
23
|
-
import "../label-D0KXeBhk.js";
|
|
24
|
-
import "../poll-HnaJcB0o.js";
|
|
25
|
-
import "../index-h64gcVNJ.js";
|
|
26
|
-
import "../index-BLwMeReG.js";
|
|
27
|
-
import "../MessageCommandParser-DEOl_ifb.js";
|
|
28
|
-
import "../signals-DBS60vTo.js";
|
|
29
|
-
import "../helpers-hDh_tMb6.js";
|
|
30
|
-
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
|
-
import "../EventsRouter-4pT6vj-U.js";
|
|
32
|
-
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-DqnSDZ6l.js";
|
|
1
|
+
import { At as makeContextAwareFunction, Dt as getCommandKit, Et as exitContext, Mt as useEnvironment, Nt as useStore, Ot as getContext, Tt as GenericFunction, jt as provideContext, kt as isCommandWorkerContext, wt as AsyncFunction } from "../analytics-engine-_urJ5QTH.js";
|
|
34
2
|
export { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment, useStore };
|
|
@@ -1,42 +1,22 @@
|
|
|
1
|
-
require('../colors-
|
|
2
|
-
require('../ActionRow-
|
|
3
|
-
require('../
|
|
4
|
-
|
|
5
|
-
require('../
|
|
6
|
-
require('../
|
|
7
|
-
require('../
|
|
8
|
-
require('../
|
|
9
|
-
require('../
|
|
10
|
-
require('../
|
|
11
|
-
require('../
|
|
12
|
-
require('../
|
|
13
|
-
require('../
|
|
14
|
-
require('../
|
|
15
|
-
require('../
|
|
16
|
-
require('../display-
|
|
17
|
-
require('../
|
|
18
|
-
require('../
|
|
19
|
-
require('../
|
|
20
|
-
require('../constants-BMWH2YUr.js');
|
|
21
|
-
require('../PluginCommon-CPWV5xuX.js');
|
|
22
|
-
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
|
-
require('../RuntimePlugin-COeXe8rP.js');
|
|
24
|
-
require('../types-Cdh4uaFR.js');
|
|
25
|
-
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
|
-
require('../runtime-Skt5NiOc.js');
|
|
27
|
-
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-D11rQXLs.js');
|
|
29
|
-
require('../constants-D0dawKxO.js');
|
|
30
|
-
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
|
-
require('../signals-Cnqe9dFV.js');
|
|
32
|
-
require('../helpers-D2_1jih6.js');
|
|
33
|
-
require('../MessageCommandParser-CKh-tM97.js');
|
|
34
|
-
require('../CommandsRouter-CWMipIis.js');
|
|
35
|
-
require('../EventsRouter-C04XqRKf.js');
|
|
36
|
-
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-fIO6fqGZ.js');
|
|
38
|
-
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
|
-
require('../store-ZwL2gN6a.js');
|
|
1
|
+
require('../colors-Csc0X4QJ.js');
|
|
2
|
+
require('../ActionRow-CSN_UKmM.js');
|
|
3
|
+
const require_commandkit = require('../commandkit-B1_NP74k.js');
|
|
4
|
+
require('../constants-CeIMhMD0.js');
|
|
5
|
+
require('../types-package-Bjh_ap0V.js');
|
|
6
|
+
require('../constants-BA0TJU6e.js');
|
|
7
|
+
require('../EventWorkerContext-CfqamFWu.js');
|
|
8
|
+
require('../signals-ewEPW2cO.js');
|
|
9
|
+
require('../helpers-DSy7EjzP.js');
|
|
10
|
+
require('../MessageCommandParser-VMFFGs0R.js');
|
|
11
|
+
require('../CommandsRouter-D5mGRFEr.js');
|
|
12
|
+
require('../EventsRouter-Be5NDOX4.js');
|
|
13
|
+
require('../router-CtcApqrw.js');
|
|
14
|
+
require('../file-DqI3v90P.js');
|
|
15
|
+
require('../separator-DGwA_b1J.js');
|
|
16
|
+
require('../text-display-BVuG7dT-.js');
|
|
17
|
+
require('../poll-ziQQQbMU.js');
|
|
18
|
+
require('../common-zQwj90Nz.js');
|
|
19
|
+
require('../store-DK4JA-fQ.js');
|
|
40
20
|
|
|
41
21
|
exports.exitContext = require_commandkit.exitContext;
|
|
42
22
|
exports.getCommandKit = require_commandkit.getCommandKit;
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-9k4yfhYD.js";
|
|
4
|
-
import "../ModalKit-Cq2ns6jv.js";
|
|
5
|
-
import "../element-CvNhvLZ8.js";
|
|
6
|
-
import "../ActionRow-B-7n9MMr.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-RMp-w8HV.js";
|
|
9
|
-
import "../Modal-Calb46SJ.js";
|
|
10
|
-
import "../common-DHTTnX82.js";
|
|
11
|
-
import "../StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
-
import "../UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
-
import "../RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
-
import "../SelectMenu-VcDhOGoJ.js";
|
|
17
|
-
import "../container-1ltvkavy.js";
|
|
18
|
-
import "../file-n2yl_-vl.js";
|
|
19
|
-
import "../media-gallery-BzG70ued.js";
|
|
20
|
-
import "../section-BOaJKXiy.js";
|
|
21
|
-
import "../separator-Cb7-6T6N.js";
|
|
22
|
-
import "../text-display-B_hpz50P.js";
|
|
23
|
-
import "../label-D0KXeBhk.js";
|
|
24
|
-
import "../poll-HnaJcB0o.js";
|
|
25
|
-
import "../index-h64gcVNJ.js";
|
|
26
|
-
import "../index-BLwMeReG.js";
|
|
27
|
-
import "../MessageCommandParser-DEOl_ifb.js";
|
|
28
|
-
import "../signals-DBS60vTo.js";
|
|
29
|
-
import "../helpers-hDh_tMb6.js";
|
|
30
|
-
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
|
-
import "../EventsRouter-4pT6vj-U.js";
|
|
32
|
-
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-DqnSDZ6l.js";
|
|
1
|
+
import { Ft as CommandKitEnvironmentInternalData, It as CommandKitEnvironmentType, Lt as after, Pt as CommandKitEnvironment, Rt as cancelAfter } from "../analytics-engine-_urJ5QTH.js";
|
|
34
2
|
export { CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, after, cancelAfter };
|
|
@@ -1,42 +1,22 @@
|
|
|
1
|
-
require('../colors-
|
|
2
|
-
require('../ActionRow-
|
|
3
|
-
require('../
|
|
4
|
-
|
|
5
|
-
require('../
|
|
6
|
-
require('../
|
|
7
|
-
require('../
|
|
8
|
-
require('../
|
|
9
|
-
require('../
|
|
10
|
-
require('../
|
|
11
|
-
require('../
|
|
12
|
-
require('../
|
|
13
|
-
require('../
|
|
14
|
-
require('../
|
|
15
|
-
require('../
|
|
16
|
-
require('../display-
|
|
17
|
-
require('../
|
|
18
|
-
require('../
|
|
19
|
-
require('../
|
|
20
|
-
require('../constants-BMWH2YUr.js');
|
|
21
|
-
require('../PluginCommon-CPWV5xuX.js');
|
|
22
|
-
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
|
-
require('../RuntimePlugin-COeXe8rP.js');
|
|
24
|
-
require('../types-Cdh4uaFR.js');
|
|
25
|
-
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
|
-
require('../runtime-Skt5NiOc.js');
|
|
27
|
-
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-D11rQXLs.js');
|
|
29
|
-
require('../constants-D0dawKxO.js');
|
|
30
|
-
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
|
-
require('../signals-Cnqe9dFV.js');
|
|
32
|
-
require('../helpers-D2_1jih6.js');
|
|
33
|
-
require('../MessageCommandParser-CKh-tM97.js');
|
|
34
|
-
require('../CommandsRouter-CWMipIis.js');
|
|
35
|
-
require('../EventsRouter-C04XqRKf.js');
|
|
36
|
-
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-fIO6fqGZ.js');
|
|
38
|
-
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
|
-
require('../store-ZwL2gN6a.js');
|
|
1
|
+
require('../colors-Csc0X4QJ.js');
|
|
2
|
+
require('../ActionRow-CSN_UKmM.js');
|
|
3
|
+
const require_commandkit = require('../commandkit-B1_NP74k.js');
|
|
4
|
+
require('../constants-CeIMhMD0.js');
|
|
5
|
+
require('../types-package-Bjh_ap0V.js');
|
|
6
|
+
require('../constants-BA0TJU6e.js');
|
|
7
|
+
require('../EventWorkerContext-CfqamFWu.js');
|
|
8
|
+
require('../signals-ewEPW2cO.js');
|
|
9
|
+
require('../helpers-DSy7EjzP.js');
|
|
10
|
+
require('../MessageCommandParser-VMFFGs0R.js');
|
|
11
|
+
require('../CommandsRouter-D5mGRFEr.js');
|
|
12
|
+
require('../EventsRouter-Be5NDOX4.js');
|
|
13
|
+
require('../router-CtcApqrw.js');
|
|
14
|
+
require('../file-DqI3v90P.js');
|
|
15
|
+
require('../separator-DGwA_b1J.js');
|
|
16
|
+
require('../text-display-BVuG7dT-.js');
|
|
17
|
+
require('../poll-ziQQQbMU.js');
|
|
18
|
+
require('../common-zQwj90Nz.js');
|
|
19
|
+
require('../store-DK4JA-fQ.js');
|
|
40
20
|
|
|
41
21
|
exports.CommandKitEnvironment = require_commandkit.CommandKitEnvironment;
|
|
42
22
|
exports.CommandKitEnvironmentType = require_commandkit.CommandKitEnvironmentType;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ButtonKit } from "./ButtonKit-
|
|
2
|
-
import { ModalKit } from "./ModalKit-
|
|
1
|
+
import { t as ButtonKit } from "./ButtonKit-DKu0VAe4.js";
|
|
2
|
+
import { i as ModalKit } from "./ModalKit-BWXI3Z26.js";
|
|
3
3
|
import { ActionRowBuilder, TextInputBuilder } from "discord.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/common/element.d.ts
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* Represents the types of elements that can be used in CommandKit.
|
|
9
8
|
*/
|
|
@@ -67,6 +66,7 @@ declare function Fragment(props: FragmentElementProps): CommandKitElementData[El
|
|
|
67
66
|
* @returns The created CommandKit element.
|
|
68
67
|
*/
|
|
69
68
|
declare function createElement(type: Function, props: Record<string, unknown>, ...children: any[]): CommandKitElement<ElementType>;
|
|
69
|
+
declare function applyDefaultOptionalComponentBehavior<P>(props: P): P;
|
|
70
70
|
//#endregion
|
|
71
|
-
export {
|
|
72
|
-
//# sourceMappingURL=element-
|
|
71
|
+
export { Fragment as a, createElement as c, ElementType as i, getElement as l, CommandKitElement as n, FragmentElementProps as o, CommandKitElementData as r, applyDefaultOptionalComponentBehavior as s, AnyCommandKitElement as t, isCommandKitElement as u };
|
|
72
|
+
//# sourceMappingURL=element-DZeqbSTk.d.ts.map
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
function DevEnv(_static = false) {
|
|
8
8
|
const common = {
|
|
9
9
|
NODE_ENV: "development",
|
|
10
|
-
COMMANDKIT_IS_DEV: "true"
|
|
10
|
+
COMMANDKIT_IS_DEV: "true",
|
|
11
|
+
COMMANDKIT_INTERNAL_IS_CLI_PROCESS: "false",
|
|
12
|
+
COMMANDKIT_IS_BUILD: "false"
|
|
11
13
|
};
|
|
12
14
|
if (_static) return Object.assign({}, common);
|
|
13
15
|
return Object.assign({}, process.env, common);
|
|
@@ -19,7 +21,9 @@ function DevEnv(_static = false) {
|
|
|
19
21
|
function ProdEnv(_static = false) {
|
|
20
22
|
const common = {
|
|
21
23
|
NODE_ENV: "production",
|
|
22
|
-
COMMANDKIT_IS_DEV: "false"
|
|
24
|
+
COMMANDKIT_IS_DEV: "false",
|
|
25
|
+
COMMANDKIT_INTERNAL_IS_CLI_PROCESS: "false",
|
|
26
|
+
COMMANDKIT_IS_BUILD: "false"
|
|
23
27
|
};
|
|
24
28
|
if (_static) return Object.assign({}, common);
|
|
25
29
|
return Object.assign({}, process.env, common);
|
|
@@ -106,4 +110,4 @@ Object.defineProperty(exports, 'setCLIEnv', {
|
|
|
106
110
|
return setCLIEnv;
|
|
107
111
|
}
|
|
108
112
|
});
|
|
109
|
-
//# sourceMappingURL=env-
|
|
113
|
+
//# sourceMappingURL=env-FxaiNasU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-FxaiNasU.js","names":[],"sources":["../src/cli/env.ts"],"sourcesContent":["/**\n * @private\n * @internal\n */\nexport function DevEnv(_static = false) {\n const common = {\n NODE_ENV: 'development',\n COMMANDKIT_IS_DEV: 'true',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport function ProdEnv(_static = false) {\n const common = {\n NODE_ENV: 'production',\n COMMANDKIT_IS_DEV: 'false',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport const CommonEnvFiles = ['.env', '.env.local'];\n/**\n * @private\n * @internal\n */\nexport const DevEnvFiles = ['.env.development', '.env.development.local'];\n/**\n * @private\n * @internal\n */\nexport const ProdEnvFiles = ['.env.production', '.env.production.local'];\n/**\n * @private\n * @internal\n */\nexport const devEnvFileArgs = [...CommonEnvFiles, ...DevEnvFiles];\n/**\n * @private\n * @internal\n */\nexport const prodEnvFileArgs = [...CommonEnvFiles, ...ProdEnvFiles];\n/**\n * @private\n * @internal\n */\nexport function setCLIEnv() {\n process.env.COMMANDKIT_IS_CLI = 'true';\n}\n"],"mappings":";;;;;;AAIA,SAAgB,OAAO,UAAU,OAAO;CACtC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,SAAgB,QAAQ,UAAU,OAAO;CACvC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,MAAa,iBAAiB,CAAC,QAAQ,aAAa;;;;;AAKpD,MAAa,cAAc,CAAC,oBAAoB,yBAAyB;;;;;AAKzE,MAAa,eAAe,CAAC,mBAAmB,wBAAwB;;;;;AAKxE,MAAa,iBAAiB,CAAC,GAAG,gBAAgB,GAAG,YAAY;;;;;AAKjE,MAAa,kBAAkB,CAAC,GAAG,gBAAgB,GAAG,aAAa;;;;;AAKnE,SAAgB,YAAY;AAC1B,SAAQ,IAAI,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes-Ds0bnPvT.js","names":[],"sources":["../src/utils/error-codes.ts"],"sourcesContent":["/**\n * The error codes used by CommandKit.\n */\nexport const CommandKitErrorCodes = {\n /**\n * Error code for exiting middleware.\n */\n StopMiddlewares: Symbol('kStopMiddlewares'),\n /**\n * Error code for forwarded commands.\n */\n ForwardedCommand: Symbol('kForwardedCommand'),\n /**\n * Error code for invalid command prefix.\n */\n InvalidCommandPrefix: Symbol('kInvalidCommandPrefix'),\n /**\n * Error code for plugin capture handle.\n */\n PluginCaptureHandle: Symbol('kPluginCaptureHandle'),\n /**\n * Error code for event interruption signal\n */\n StopEvents: Symbol('kStopEvents'),\n} as const;\n\n/**\n * The type for CommandKit errors.\n */\nexport type CommandKitError = Error & { code: symbol };\n\n/**\n * Creates a new CommandKit error with the specified code.\n * @param code The error code to assign to the error.\n * @returns A new CommandKit error instance.\n */\nexport function createCommandKitError(code: symbol): CommandKitError {\n const error = new Error() as CommandKitError;\n\n Reflect.set(error, 'code', code);\n\n return error;\n}\n\n/**\n * Checks if the given error is a CommandKit error.\n * @param error The error to check.\n * @returns True if the error is a CommandKit error, false otherwise.\n */\nexport function isCommandKitError(error: unknown): error is CommandKitError {\n if (!(error instanceof Error)) return false;\n const code = Reflect.get(error, 'code');\n\n for (const key in CommandKitErrorCodes) {\n if (CommandKitErrorCodes[key as keyof typeof CommandKitErrorCodes] === code)\n return true;\n }\n\n return false;\n}\n\n/**\n * Checks if the given error is of a specific CommandKit error type.\n * @param error The error to check.\n * @param code The error code or an array of error codes to check against.\n * @returns True if the error matches the specified code(s), false otherwise.\n */\nexport function isErrorType(error: unknown, code: symbol | symbol[]): boolean {\n if (!isCommandKitError(error)) return false;\n const errorCode = Reflect.get(error, 'code');\n\n if (!errorCode) return false;\n\n if (Array.isArray(code)) return code.includes(errorCode);\n\n return errorCode === code;\n}\n"],"mappings":";;;;;AAGA,MAAa,uBAAuB;CAIlC,iBAAiB,OAAO,mBAAmB;CAI3C,kBAAkB,OAAO,oBAAoB;CAI7C,sBAAsB,OAAO,wBAAwB;CAIrD,qBAAqB,OAAO,uBAAuB;CAInD,YAAY,OAAO,cAAc;CAClC;;;;;;AAYD,SAAgB,sBAAsB,MAA+B;CACnE,MAAM,wBAAQ,IAAI,OAAO;AAEzB,SAAQ,IAAI,OAAO,QAAQ,KAAK;AAEhC,QAAO;;;;;;;AAQT,SAAgB,kBAAkB,OAA0C;AAC1E,KAAI,EAAE,iBAAiB,OAAQ,QAAO;CACtC,MAAM,OAAO,QAAQ,IAAI,OAAO,OAAO;AAEvC,MAAK,MAAM,OAAO,qBAChB,KAAI,qBAAqB,SAA8C,KACvE,
|
|
1
|
+
{"version":3,"file":"error-codes-Ds0bnPvT.js","names":[],"sources":["../src/utils/error-codes.ts"],"sourcesContent":["/**\n * The error codes used by CommandKit.\n */\nexport const CommandKitErrorCodes = {\n /**\n * Error code for exiting middleware.\n */\n StopMiddlewares: Symbol('kStopMiddlewares'),\n /**\n * Error code for forwarded commands.\n */\n ForwardedCommand: Symbol('kForwardedCommand'),\n /**\n * Error code for invalid command prefix.\n */\n InvalidCommandPrefix: Symbol('kInvalidCommandPrefix'),\n /**\n * Error code for plugin capture handle.\n */\n PluginCaptureHandle: Symbol('kPluginCaptureHandle'),\n /**\n * Error code for event interruption signal\n */\n StopEvents: Symbol('kStopEvents'),\n} as const;\n\n/**\n * The type for CommandKit errors.\n */\nexport type CommandKitError = Error & { code: symbol };\n\n/**\n * Creates a new CommandKit error with the specified code.\n * @param code The error code to assign to the error.\n * @returns A new CommandKit error instance.\n */\nexport function createCommandKitError(code: symbol): CommandKitError {\n const error = new Error() as CommandKitError;\n\n Reflect.set(error, 'code', code);\n\n return error;\n}\n\n/**\n * Checks if the given error is a CommandKit error.\n * @param error The error to check.\n * @returns True if the error is a CommandKit error, false otherwise.\n */\nexport function isCommandKitError(error: unknown): error is CommandKitError {\n if (!(error instanceof Error)) return false;\n const code = Reflect.get(error, 'code');\n\n for (const key in CommandKitErrorCodes) {\n if (CommandKitErrorCodes[key as keyof typeof CommandKitErrorCodes] === code)\n return true;\n }\n\n return false;\n}\n\n/**\n * Checks if the given error is of a specific CommandKit error type.\n * @param error The error to check.\n * @param code The error code or an array of error codes to check against.\n * @returns True if the error matches the specified code(s), false otherwise.\n */\nexport function isErrorType(error: unknown, code: symbol | symbol[]): boolean {\n if (!isCommandKitError(error)) return false;\n const errorCode = Reflect.get(error, 'code');\n\n if (!errorCode) return false;\n\n if (Array.isArray(code)) return code.includes(errorCode);\n\n return errorCode === code;\n}\n"],"mappings":";;;;;AAGA,MAAa,uBAAuB;CAIlC,iBAAiB,OAAO,mBAAmB;CAI3C,kBAAkB,OAAO,oBAAoB;CAI7C,sBAAsB,OAAO,wBAAwB;CAIrD,qBAAqB,OAAO,uBAAuB;CAInD,YAAY,OAAO,cAAc;CAClC;;;;;;AAYD,SAAgB,sBAAsB,MAA+B;CACnE,MAAM,wBAAQ,IAAI,OAAO;AAEzB,SAAQ,IAAI,OAAO,QAAQ,KAAK;AAEhC,QAAO;;;;;;;AAQT,SAAgB,kBAAkB,OAA0C;AAC1E,KAAI,EAAE,iBAAiB,OAAQ,QAAO;CACtC,MAAM,OAAO,QAAQ,IAAI,OAAO,OAAO;AAEvC,MAAK,MAAM,OAAO,qBAChB,KAAI,qBAAqB,SAA8C,KACvE,QAAE;AAGJ,QAAO;;;;;;;;AAST,SAAgB,YAAY,OAAgB,MAAkC;AAC5E,KAAI,CAAC,kBAAkB,MAAM,CAAE,QAAO;CACtC,MAAM,YAAY,QAAQ,IAAI,OAAO,OAAO;AAE5C,KAAI,CAAC,UAAW,QAAO;AAEvB,KAAI,MAAM,QAAQ,KAAK,CAAE,QAAO,KAAK,SAAS,UAAU;AAExD,QAAO,cAAc"}
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-9k4yfhYD.js";
|
|
4
|
-
import "../ModalKit-Cq2ns6jv.js";
|
|
5
|
-
import "../element-CvNhvLZ8.js";
|
|
6
|
-
import "../ActionRow-B-7n9MMr.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-RMp-w8HV.js";
|
|
9
|
-
import "../Modal-Calb46SJ.js";
|
|
10
|
-
import "../common-DHTTnX82.js";
|
|
11
|
-
import "../StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
-
import "../UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
-
import "../RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
-
import "../SelectMenu-VcDhOGoJ.js";
|
|
17
|
-
import "../container-1ltvkavy.js";
|
|
18
|
-
import "../file-n2yl_-vl.js";
|
|
19
|
-
import "../media-gallery-BzG70ued.js";
|
|
20
|
-
import "../section-BOaJKXiy.js";
|
|
21
|
-
import "../separator-Cb7-6T6N.js";
|
|
22
|
-
import "../text-display-B_hpz50P.js";
|
|
23
|
-
import "../label-D0KXeBhk.js";
|
|
24
|
-
import "../poll-HnaJcB0o.js";
|
|
25
|
-
import "../index-h64gcVNJ.js";
|
|
26
|
-
import "../index-BLwMeReG.js";
|
|
27
|
-
import "../MessageCommandParser-DEOl_ifb.js";
|
|
28
|
-
import "../signals-DBS60vTo.js";
|
|
29
|
-
import "../helpers-hDh_tMb6.js";
|
|
30
|
-
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
|
-
import "../EventsRouter-4pT6vj-U.js";
|
|
32
|
-
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-DqnSDZ6l.js";
|
|
1
|
+
import { ct as ListenerFunction, st as CommandKitEventsChannel } from "../analytics-engine-_urJ5QTH.js";
|
|
34
2
|
export { CommandKitEventsChannel, ListenerFunction };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const require_CommandKitEventsChannel = require('../CommandKitEventsChannel-
|
|
1
|
+
const require_CommandKitEventsChannel = require('../CommandKitEventsChannel-DDI0UVh9.js');
|
|
2
2
|
|
|
3
3
|
exports.CommandKitEventsChannel = require_CommandKitEventsChannel.CommandKitEventsChannel;
|