commandkit 1.0.0-dev.20250529125116 → 1.0.0-dev.20250530015910
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/dist/ActionRow-CmTHbo2t.js +25 -0
- package/dist/ActionRow-CmTHbo2t.js.map +1 -0
- package/dist/ActionRow-D0wafJhZ.d.ts +16 -0
- package/dist/Button-Bl5nbwTS.d.ts +32 -0
- package/dist/ButtonKit-BSI7lCI0.d.ts +68 -0
- package/dist/ChannelSelectMenuKit-L15A2jpT.d.ts +51 -0
- package/dist/CommandKit-CDlCsGCx.d.ts +926 -0
- package/dist/CommandKit-DDrQtQns.js +3281 -0
- package/dist/CommandKit-DDrQtQns.js.map +1 -0
- package/dist/CommandKit.d.ts +33 -13
- package/dist/CommandKit.js +46 -16
- package/dist/CommandKitEventsChannel-B6LKgxmv.js +44 -0
- package/dist/CommandKitEventsChannel-B6LKgxmv.js.map +1 -0
- package/dist/CommandsRouter-BHaPno8o.js +127 -0
- package/dist/CommandsRouter-BHaPno8o.js.map +1 -0
- package/dist/CommandsRouter-C7X-eXE2.d.ts +67 -0
- package/dist/CompilerPlugin-XzuGixkC.js +32 -0
- package/dist/CompilerPlugin-XzuGixkC.js.map +1 -0
- package/dist/CompilerPluginRuntime-zFCCw1kM.js +70 -0
- package/dist/CompilerPluginRuntime-zFCCw1kM.js.map +1 -0
- package/dist/DefaultLogger-D3G0rGnV.d.ts +30 -0
- package/dist/EventInterceptor-D_oEWSnF.d.ts +84 -0
- package/dist/EventInterceptor-DtRINyTP.js +140 -0
- package/dist/EventInterceptor-DtRINyTP.js.map +1 -0
- package/dist/EventWorkerContext-C0e23GNY.d.ts +19 -0
- package/dist/EventWorkerContext-XZGSHn5F.js +45 -0
- package/dist/EventWorkerContext-XZGSHn5F.js.map +1 -0
- package/dist/EventsRouter-BacqK6z3.d.ts +90 -0
- package/dist/EventsRouter-CqnrlbjN.js +133 -0
- package/dist/EventsRouter-CqnrlbjN.js.map +1 -0
- package/dist/ILogger-BTMQuall.d.ts +11 -0
- package/dist/ILogger-DucYb0bG.js +0 -0
- package/dist/Logger-A3wjB7L1.d.ts +17 -0
- package/dist/MentionableSelectMenuKit-BiUSKUtZ.d.ts +51 -0
- package/dist/MessageCommandParser-B13Pkwo9.js +200 -0
- package/dist/MessageCommandParser-B13Pkwo9.js.map +1 -0
- package/dist/MessageCommandParser-tzroBwij.d.ts +62 -0
- package/dist/Modal-Cxm6cs5c.d.ts +58 -0
- package/dist/ModalKit-CKtQ8eXW.d.ts +66 -0
- package/dist/PluginCommon-DPqnQngK.js +48 -0
- package/dist/PluginCommon-DPqnQngK.js.map +1 -0
- package/dist/RoleSelectMenuKit-BSMKkru2.d.ts +51 -0
- package/dist/RuntimePlugin-CKsd83M3.js +130 -0
- package/dist/RuntimePlugin-CKsd83M3.js.map +1 -0
- package/dist/SelectMenu-b7jgrkjO.d.ts +36 -0
- package/dist/StringSelectMenuKit-B9FHTe48.d.ts +51 -0
- package/dist/UserSelectMenuKit-DiP0imyo.d.ts +51 -0
- package/dist/app/commands/AppCommandRunner.d.ts +33 -13
- package/dist/app/commands/AppCommandRunner.js +38 -3
- package/dist/app/commands/Context.d.ts +33 -13
- package/dist/app/commands/Context.js +40 -3
- package/dist/app/commands/MessageCommandParser.d.ts +2 -60
- package/dist/app/commands/MessageCommandParser.js +5 -2
- package/dist/app/commands/helpers.d.ts +2 -7
- package/dist/app/commands/helpers.js +4 -2
- package/dist/app/events/EventWorkerContext.d.ts +34 -28
- package/dist/app/events/EventWorkerContext.js +6 -2
- package/dist/app/handlers/AppCommandHandler.d.ts +33 -13
- package/dist/app/handlers/AppCommandHandler.js +38 -8
- package/dist/app/handlers/AppEventsHandler.d.ts +33 -13
- package/dist/app/handlers/AppEventsHandler.js +38 -3
- package/dist/app/index.d.ts +33 -15
- package/dist/app/index.js +51 -8
- package/dist/app/middleware/signals.d.ts +2 -18
- package/dist/app/middleware/signals.js +6 -2
- package/dist/app/register/CommandRegistrar.d.ts +33 -13
- package/dist/app/register/CommandRegistrar.js +38 -3
- package/dist/app/router/CommandsRouter.d.ts +2 -65
- package/dist/app/router/CommandsRouter.js +3 -2
- package/dist/app/router/EventsRouter.d.ts +2 -88
- package/dist/app/router/EventsRouter.js +3 -2
- package/dist/app/router/index.d.ts +4 -3
- package/dist/app/router/index.js +6 -2
- package/dist/app-CXCbKsPz.js +0 -0
- package/dist/app-process-uCX52YaE.js +48 -0
- package/dist/app-process-uCX52YaE.js.map +1 -0
- package/dist/build-Bkb5t3XA.js +122 -0
- package/dist/build-Bkb5t3XA.js.map +1 -0
- package/dist/chunk-nOFOJqeH.js +30 -0
- package/dist/cli/app-process.d.ts +5 -3
- package/dist/cli/app-process.js +8 -3
- package/dist/cli/build.d.ts +46 -21
- package/dist/cli/build.js +40 -48
- package/dist/cli/common.d.ts +39 -19
- package/dist/cli/common.js +13 -10
- package/dist/cli/development.d.ts +3 -1
- package/dist/cli/development.js +185 -50
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.d.ts +7 -5
- package/dist/cli/env.js +9 -2
- package/dist/cli/generators.d.ts +3 -1
- package/dist/cli/generators.js +64 -15
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.d.ts +3 -1
- package/dist/cli/information.js +110 -5
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.d.ts +2 -10
- package/dist/cli/init.js +4 -99
- package/dist/cli/parse-env.d.ts +3 -1
- package/dist/cli/parse-env.js +53 -1
- package/dist/cli/parse-env.js.map +1 -1
- package/dist/cli/production.d.ts +5 -3
- package/dist/cli/production.js +68 -46
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.d.ts +3 -1
- package/dist/cli/type-checker.js +7 -5
- package/dist/cli/utils.d.ts +4 -2
- package/dist/cli/utils.js +3 -2
- package/dist/colors-Cd4Oz-r-.js +14 -0
- package/dist/colors-Cd4Oz-r-.js.map +1 -0
- package/dist/common-CcfjYnPG.js +0 -0
- package/dist/common-CeO-vn8Y.js +14 -0
- package/dist/common-CeO-vn8Y.js.map +1 -0
- package/dist/common-DirpDCa6.js +182 -0
- package/dist/common-DirpDCa6.js.map +1 -0
- package/dist/common-pvPJVTfe.d.ts +25 -0
- package/dist/components/common/EventInterceptor.d.ts +2 -82
- package/dist/components/common/EventInterceptor.js +3 -2
- package/dist/components/common/element.d.ts +5 -29
- package/dist/components/common/element.js +10 -2
- package/dist/components/common/types.d.ts +2 -3
- package/dist/components/common/types.js +1 -2
- package/dist/components/index.d.ts +24 -22
- package/dist/components/index.js +72 -16
- package/dist/components/v1/action-row/ActionRow.d.ts +6 -18
- package/dist/components/v1/action-row/ActionRow.js +3 -2
- package/dist/components/v1/button/Button.d.ts +7 -31
- package/dist/components/v1/button/Button.js +38 -16
- package/dist/components/v1/button/ButtonKit.d.ts +3 -66
- package/dist/components/v1/button/ButtonKit.js +38 -16
- package/dist/components/v1/modal/Modal.d.ts +7 -57
- package/dist/components/v1/modal/Modal.js +41 -16
- package/dist/components/v1/modal/ModalKit.d.ts +3 -64
- package/dist/components/v1/modal/ModalKit.js +38 -16
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/RoleSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/SelectMenu.d.ts +10 -40
- package/dist/components/v1/select-menu/SelectMenu.js +43 -16
- package/dist/components/v1/select-menu/StringSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/UserSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/common.d.ts +3 -23
- package/dist/components/v1/select-menu/common.js +1 -2
- package/dist/components/v2/common.d.ts +5 -3
- package/dist/components/v2/common.js +3 -2
- package/dist/components/v2/container.d.ts +2 -8
- package/dist/components/v2/container.js +4 -2
- package/dist/components/v2/file.d.ts +2 -8
- package/dist/components/v2/file.js +3 -2
- package/dist/components/v2/index.d.ts +8 -7
- package/dist/components/v2/index.js +17 -2
- package/dist/components/v2/media-gallery.d.ts +2 -15
- package/dist/components/v2/media-gallery.js +5 -2
- package/dist/components/v2/section.d.ts +2 -16
- package/dist/components/v2/section.js +5 -2
- package/dist/components/v2/separator.d.ts +2 -7
- package/dist/components/v2/separator.js +3 -2
- package/dist/components/v2/text-display.d.ts +2 -10
- package/dist/components/v2/text-display.js +3 -2
- package/dist/config/config.d.ts +36 -28
- package/dist/config/config.js +39 -3
- package/dist/config/default.d.ts +37 -17
- package/dist/config/default.js +38 -3
- package/dist/config/loader.d.ts +37 -17
- package/dist/config/loader.js +39 -11
- package/dist/config/types.d.ts +34 -83
- package/dist/config/types.js +0 -2
- package/dist/config/utils.d.ts +35 -26
- package/dist/config/utils.js +15 -1
- package/dist/config/utils.js.map +1 -1
- package/dist/config-Dyb-zl9w.d.ts +17 -0
- package/dist/constants-Ce6w4OFe.d.ts +17 -0
- package/dist/constants-DOPSzXI0.js +47 -0
- package/dist/constants-DOPSzXI0.js.map +1 -0
- package/dist/container-CpuiLsZM.js +33 -0
- package/dist/container-CpuiLsZM.js.map +1 -0
- package/dist/container-CwEATQy2.d.ts +10 -0
- package/dist/context/async-context.d.ts +33 -13
- package/dist/context/async-context.js +44 -16
- package/dist/context/environment.d.ts +33 -13
- package/dist/context/environment.js +41 -3
- package/dist/element-D_nyVwgB.d.ts +30 -0
- package/dist/element-hdSqnIpC.js +62 -0
- package/dist/element-hdSqnIpC.js.map +1 -0
- package/dist/env-DKFSgEcR.js +68 -0
- package/dist/env-DKFSgEcR.js.map +1 -0
- package/dist/error-codes-C_UO39jz.js +53 -0
- package/dist/error-codes-C_UO39jz.js.map +1 -0
- package/dist/events/CommandKitEventsChannel.d.ts +33 -13
- package/dist/events/CommandKitEventsChannel.js +3 -2
- package/dist/feature-flags-BJp6kYmi.js +85 -0
- package/dist/feature-flags-BJp6kYmi.js.map +1 -0
- package/dist/file-BdyYwkaI.d.ts +10 -0
- package/dist/file-DE69SSOP.js +18 -0
- package/dist/file-DE69SSOP.js.map +1 -0
- package/dist/flags/feature-flags.d.ts +33 -13
- package/dist/flags/feature-flags.js +40 -16
- package/dist/flags/store.d.ts +33 -13
- package/dist/flags/store.js +3 -2
- package/dist/helpers-CswC9gKF.js +25 -0
- package/dist/helpers-CswC9gKF.js.map +1 -0
- package/dist/helpers-DAmE106r.d.ts +9 -0
- package/dist/index-CUPkUUOR.d.ts +1 -0
- package/dist/index-Dw5cCt-A.d.ts +1 -0
- package/dist/index-E7Wvm5uX.d.ts +1 -0
- package/dist/index.d.ts +43 -51
- package/dist/index.js +147 -102
- package/dist/index.js.map +1 -1
- package/dist/init--p1nl1NO.d.ts +13 -0
- package/dist/init-D2me-V0n.js +67 -0
- package/dist/init-D2me-V0n.js.map +1 -0
- package/dist/logger/DefaultLogger.d.ts +3 -28
- package/dist/logger/DefaultLogger.js +38 -3
- package/dist/logger/ILogger.d.ts +2 -9
- package/dist/logger/ILogger.js +1 -2
- package/dist/logger/Logger.d.ts +3 -15
- package/dist/logger/Logger.js +39 -3
- package/dist/media-gallery-DCu02VXc.d.ts +17 -0
- package/dist/media-gallery-nUEHqKVF.js +36 -0
- package/dist/media-gallery-nUEHqKVF.js.map +1 -0
- package/dist/plugins/CompilerPlugin.d.ts +33 -13
- package/dist/plugins/CompilerPlugin.js +5 -2
- package/dist/plugins/PluginCommon.d.ts +33 -13
- package/dist/plugins/PluginCommon.js +5 -2
- package/dist/plugins/RuntimePlugin.d.ts +33 -13
- package/dist/plugins/RuntimePlugin.js +5 -2
- package/dist/plugins/index.d.ts +33 -15
- package/dist/plugins/index.js +44 -3
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +33 -13
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +38 -3
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +33 -13
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +3 -3
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +33 -26
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +38 -3
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +40 -19
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +38 -3
- package/dist/plugins/plugin-runtime/runtime.d.ts +33 -13
- package/dist/plugins/plugin-runtime/runtime.js +1 -2
- package/dist/plugins/plugin-runtime/types.d.ts +2 -72
- package/dist/plugins/plugin-runtime/types.js +1 -2
- package/dist/plugins/types.d.ts +33 -13
- package/dist/plugins/types.js +1 -2
- package/dist/resolve-file-url-pO9_rLft.js +23 -0
- package/dist/resolve-file-url-pO9_rLft.js.map +1 -0
- package/dist/router-Dn35v30f.js +0 -0
- package/dist/runtime-ByJtSXs_.js +0 -0
- package/dist/section-D6t7tyEZ.js +40 -0
- package/dist/section-D6t7tyEZ.js.map +1 -0
- package/dist/section-fktaECHL.d.ts +18 -0
- package/dist/separator-CuesaLrC.d.ts +8 -0
- package/dist/separator-DYAFK-Jj.js +17 -0
- package/dist/separator-DYAFK-Jj.js.map +1 -0
- package/dist/signals-Bp0bzjE6.js +46 -0
- package/dist/signals-Bp0bzjE6.js.map +1 -0
- package/dist/signals-DUoWkeZ7.d.ts +20 -0
- package/dist/store-Ci6ib2C9.js +14 -0
- package/dist/store-Ci6ib2C9.js.map +1 -0
- package/dist/text-display-DNMwmGHJ.d.ts +12 -0
- package/dist/text-display-Dy6JHB5X.js +19 -0
- package/dist/text-display-Dy6JHB5X.js.map +1 -0
- package/dist/type-checker-FOYNSGX0.js +84 -0
- package/dist/type-checker-FOYNSGX0.js.map +1 -0
- package/dist/types-0ADL_reY.d.ts +73 -0
- package/dist/types-B5VPP9ig.js +0 -0
- package/dist/types-BDwNROY2.d.ts +74 -0
- package/dist/types-Bq0EWaM3.js +0 -0
- package/dist/types-CJ-XvOFN.d.ts +5 -0
- package/dist/types-Cdh4uaFR.js +0 -0
- package/dist/types-package-DRhFn59I.js +66 -0
- package/dist/types-package-DRhFn59I.js.map +1 -0
- package/dist/types.d.ts +33 -13
- package/dist/types.js +0 -2
- package/dist/utilities-5Jw5BdE1.d.ts +42 -0
- package/dist/utils/clone.d.ts +3 -1
- package/dist/utils/clone.js +8 -1
- package/dist/utils/clone.js.map +1 -1
- package/dist/utils/colors.d.ts +5 -3
- package/dist/utils/colors.js +4 -2
- package/dist/utils/constants.d.ts +2 -15
- package/dist/utils/constants.js +7 -2
- package/dist/utils/dev-hooks.d.ts +33 -13
- package/dist/utils/dev-hooks.js +38 -3
- package/dist/utils/error-codes.d.ts +9 -7
- package/dist/utils/error-codes.js +6 -2
- package/dist/utils/get-paths.d.ts +3 -1
- package/dist/utils/get-paths.js +33 -1
- package/dist/utils/get-paths.js.map +1 -1
- package/dist/utils/resolve-file-url.d.ts +3 -1
- package/dist/utils/resolve-file-url.js +3 -2
- package/dist/utils/types-package.d.ts +3 -1
- package/dist/utils/types-package.js +5 -14
- package/dist/utils/utilities.d.ts +2 -40
- package/dist/utils/utilities.js +44 -3
- package/dist/utils/warn-unstable.d.ts +3 -1
- package/dist/utils/warn-unstable.js +4 -2
- package/dist/utils-C0V7zD7R.d.ts +10 -0
- package/dist/utils-IYtoeTur.js +19 -0
- package/dist/utils-IYtoeTur.js.map +1 -0
- package/dist/v2-DofkPKHs.js +0 -0
- package/dist/version-DnRxh8U8.js +15 -0
- package/dist/version-DnRxh8U8.js.map +1 -0
- package/dist/version-SMsmj3M1.d.ts +8 -0
- package/dist/version.d.ts +2 -6
- package/dist/version.js +3 -2
- package/dist/warn-unstable-V20WCBDd.js +26 -0
- package/dist/warn-unstable-V20WCBDd.js.map +1 -0
- package/package.json +5 -4
- package/dist/CommandKit-jZCy9fZX.d.ts +0 -914
- package/dist/CommandKit.js.map +0 -1
- package/dist/app/commands/AppCommandRunner.js.map +0 -1
- package/dist/app/commands/Context.js.map +0 -1
- package/dist/app/commands/MessageCommandParser.js.map +0 -1
- package/dist/app/commands/helpers.js.map +0 -1
- package/dist/app/events/EventWorkerContext.js.map +0 -1
- package/dist/app/handlers/AppCommandHandler.js.map +0 -1
- package/dist/app/handlers/AppEventsHandler.js.map +0 -1
- package/dist/app/index.js.map +0 -1
- package/dist/app/middleware/signals.js.map +0 -1
- package/dist/app/register/CommandRegistrar.js.map +0 -1
- package/dist/app/router/CommandsRouter.js.map +0 -1
- package/dist/app/router/EventsRouter.js.map +0 -1
- package/dist/app/router/index.js.map +0 -1
- package/dist/cli/app-process.js.map +0 -1
- package/dist/cli/build.js.map +0 -1
- package/dist/cli/common.js.map +0 -1
- package/dist/cli/env.js.map +0 -1
- package/dist/cli/init.js.map +0 -1
- package/dist/cli/type-checker.js.map +0 -1
- package/dist/cli/utils.js.map +0 -1
- package/dist/components/common/EventInterceptor.js.map +0 -1
- package/dist/components/common/element.js.map +0 -1
- package/dist/components/common/types.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/v1/action-row/ActionRow.js.map +0 -1
- package/dist/components/v1/button/Button.js.map +0 -1
- package/dist/components/v1/button/ButtonKit.js.map +0 -1
- package/dist/components/v1/modal/Modal.js.map +0 -1
- package/dist/components/v1/modal/ModalKit.js.map +0 -1
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/SelectMenu.js.map +0 -1
- package/dist/components/v1/select-menu/StringSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/UserSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/common.js.map +0 -1
- package/dist/components/v2/common.js.map +0 -1
- package/dist/components/v2/container.js.map +0 -1
- package/dist/components/v2/file.js.map +0 -1
- package/dist/components/v2/index.js.map +0 -1
- package/dist/components/v2/media-gallery.js.map +0 -1
- package/dist/components/v2/section.js.map +0 -1
- package/dist/components/v2/separator.js.map +0 -1
- package/dist/components/v2/text-display.js.map +0 -1
- package/dist/config/config.js.map +0 -1
- package/dist/config/default.js.map +0 -1
- package/dist/config/loader.js.map +0 -1
- package/dist/config/types.js.map +0 -1
- package/dist/context/async-context.js.map +0 -1
- package/dist/context/environment.js.map +0 -1
- package/dist/events/CommandKitEventsChannel.js.map +0 -1
- package/dist/flags/feature-flags.js.map +0 -1
- package/dist/flags/store.js.map +0 -1
- package/dist/logger/DefaultLogger.js.map +0 -1
- package/dist/logger/ILogger.js.map +0 -1
- package/dist/logger/Logger.js.map +0 -1
- package/dist/plugins/CompilerPlugin.js.map +0 -1
- package/dist/plugins/PluginCommon.js.map +0 -1
- package/dist/plugins/RuntimePlugin.js.map +0 -1
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js.map +0 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js.map +0 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js.map +0 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js.map +0 -1
- package/dist/plugins/plugin-runtime/runtime.js.map +0 -1
- package/dist/plugins/plugin-runtime/types.js.map +0 -1
- package/dist/plugins/types.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/colors.js.map +0 -1
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/dev-hooks.js.map +0 -1
- package/dist/utils/error-codes.js.map +0 -1
- package/dist/utils/resolve-file-url.js.map +0 -1
- package/dist/utils/types-package.js.map +0 -1
- package/dist/utils/utilities.js.map +0 -1
- package/dist/utils/warn-unstable.js.map +0 -1
- package/dist/version.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MaybeArray } from "./types-CJ-XvOFN.js";
|
|
2
|
+
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd } from "./common-pvPJVTfe.js";
|
|
3
|
+
import { StringSelectMenuKit } from "./StringSelectMenuKit-B9FHTe48.js";
|
|
4
|
+
import { ChannelSelectMenuKit } from "./ChannelSelectMenuKit-L15A2jpT.js";
|
|
5
|
+
import { MentionableSelectMenuKit } from "./MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
6
|
+
import { UserSelectMenuKit } from "./UserSelectMenuKit-DiP0imyo.js";
|
|
7
|
+
import { RoleSelectMenuKit } from "./RoleSelectMenuKit-BSMKkru2.js";
|
|
8
|
+
import { APISelectMenuOption, BaseSelectMenuComponentData, ChannelSelectMenuComponentData, ChannelSelectMenuInteraction, MentionableSelectMenuComponentData, MentionableSelectMenuInteraction, RoleSelectMenuComponentData, RoleSelectMenuInteraction, SelectMenuComponentOptionData, StringSelectMenuInteraction, StringSelectMenuOptionBuilder, UserSelectMenuComponentData, UserSelectMenuInteraction } from "discord.js";
|
|
9
|
+
|
|
10
|
+
//#region src/components/v1/select-menu/SelectMenu.d.ts
|
|
11
|
+
interface CommonSelectMenuProps<T, C> {
|
|
12
|
+
onSelect?: CommandKitSelectMenuBuilderInteractionCollectorDispatch<T, C>;
|
|
13
|
+
onEnd?: CommandKitSelectMenuBuilderOnEnd;
|
|
14
|
+
onError?: (error: Error) => any;
|
|
15
|
+
options?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData;
|
|
16
|
+
}
|
|
17
|
+
interface SelectMenuProps<T, C> extends Partial<Omit<BaseSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<T, C> {}
|
|
18
|
+
interface StringSelectMenuProps extends SelectMenuProps<StringSelectMenuInteraction, StringSelectMenuKit> {
|
|
19
|
+
children?: MaybeArray<StringSelectMenuOptionBuilder>;
|
|
20
|
+
}
|
|
21
|
+
type CommonBuilderKit = StringSelectMenuKit | UserSelectMenuKit | RoleSelectMenuKit | ChannelSelectMenuKit | MentionableSelectMenuKit;
|
|
22
|
+
type ResolveBuilderInteraction<T> = T extends StringSelectMenuKit ? StringSelectMenuInteraction : T extends UserSelectMenuKit ? UserSelectMenuInteraction : T extends RoleSelectMenuKit ? RoleSelectMenuInteraction : T extends ChannelSelectMenuKit ? ChannelSelectMenuInteraction : T extends MentionableSelectMenuKit ? MentionableSelectMenuInteraction : never;
|
|
23
|
+
declare function StringSelectMenu(props: StringSelectMenuProps): StringSelectMenuKit;
|
|
24
|
+
type StringSelectMenuOptionProps = SelectMenuComponentOptionData | APISelectMenuOption;
|
|
25
|
+
declare function StringSelectMenuOption(props: StringSelectMenuOptionProps): StringSelectMenuOptionBuilder;
|
|
26
|
+
interface UserSelectMenuProps extends Partial<Omit<UserSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<UserSelectMenuInteraction, UserSelectMenuKit> {}
|
|
27
|
+
declare function UserSelectMenu(props: UserSelectMenuProps): UserSelectMenuKit;
|
|
28
|
+
interface RoleSelectMenuProps extends Partial<Omit<RoleSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<RoleSelectMenuInteraction, RoleSelectMenuKit> {}
|
|
29
|
+
declare function RoleSelectMenu(props: RoleSelectMenuProps): RoleSelectMenuKit;
|
|
30
|
+
interface MentionableSelectMenuProps extends Partial<Omit<MentionableSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<MentionableSelectMenuInteraction, MentionableSelectMenuKit> {}
|
|
31
|
+
declare function MentionableSelectMenu(props: MentionableSelectMenuProps): MentionableSelectMenuKit;
|
|
32
|
+
interface ChannelSelectMenuProps extends Partial<Omit<ChannelSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<ChannelSelectMenuInteraction, ChannelSelectMenuKit> {}
|
|
33
|
+
declare function ChannelSelectMenu(props: ChannelSelectMenuProps): ChannelSelectMenuKit;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { ChannelSelectMenu, ChannelSelectMenuProps, CommonBuilderKit, CommonSelectMenuProps, MentionableSelectMenu, MentionableSelectMenuProps, ResolveBuilderInteraction, RoleSelectMenu, RoleSelectMenuProps, SelectMenuProps, StringSelectMenu, StringSelectMenuOption, StringSelectMenuOptionProps, StringSelectMenuProps, UserSelectMenu, UserSelectMenuProps };
|
|
36
|
+
//# sourceMappingURL=SelectMenu-b7jgrkjO.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventInterceptorErrorHandler } from "./EventInterceptor-D_oEWSnF.js";
|
|
2
|
+
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, OnSelectMenuKitSubmit, SelectMenuKitPredicate } from "./common-pvPJVTfe.js";
|
|
3
|
+
import { StringSelectMenuBuilder, StringSelectMenuInteraction } from "discord.js";
|
|
4
|
+
|
|
5
|
+
//#region src/components/v1/select-menu/StringSelectMenuKit.d.ts
|
|
6
|
+
type OnStringSelectMenuKitSubmit = OnSelectMenuKitSubmit<StringSelectMenuInteraction, StringSelectMenuKit>;
|
|
7
|
+
type StringSelectMenuKitPredicate = SelectMenuKitPredicate<StringSelectMenuInteraction>;
|
|
8
|
+
declare class StringSelectMenuKit extends StringSelectMenuBuilder {
|
|
9
|
+
#private;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the handler to run when the modal is submitted.
|
|
12
|
+
* @param handler - The handler to run when the modal is submitted.
|
|
13
|
+
* @param data - The context data for the interaction collector.
|
|
14
|
+
* @returns This instance of the modal builder.
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const modal = new StringSelectMenuKit()
|
|
18
|
+
* .setTitle('My Modal')
|
|
19
|
+
* .setCustomId('my-modal')
|
|
20
|
+
* .filter((interaction) => interaction.user.id === '1234567890')
|
|
21
|
+
* .onSelect(async (interaction) => {
|
|
22
|
+
* await interaction.reply('You submitted the modal!');
|
|
23
|
+
* })
|
|
24
|
+
* .addComponents(actionRow1, actionRow2);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<StringSelectMenuInteraction, StringSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the handler to run when the interaction collector ends.
|
|
30
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
31
|
+
* @returns This instance of the modal builder.
|
|
32
|
+
*/
|
|
33
|
+
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the handler to run when the interaction collector ends.
|
|
36
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
37
|
+
* @returns This instance of the modal builder.
|
|
38
|
+
*/
|
|
39
|
+
onError(handler: EventInterceptorErrorHandler): this;
|
|
40
|
+
/**
|
|
41
|
+
* Sets a filter for the interaction collector.
|
|
42
|
+
* @param predicate - The filter to use for the interaction collector.
|
|
43
|
+
* @returns This instance of the modal builder.
|
|
44
|
+
*/
|
|
45
|
+
filter(predicate: SelectMenuKitPredicate<StringSelectMenuInteraction>): this;
|
|
46
|
+
private get customId();
|
|
47
|
+
dispose(): this;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { OnStringSelectMenuKitSubmit, StringSelectMenuKit, StringSelectMenuKitPredicate };
|
|
51
|
+
//# sourceMappingURL=StringSelectMenuKit-B9FHTe48.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventInterceptorErrorHandler } from "./EventInterceptor-D_oEWSnF.js";
|
|
2
|
+
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, OnSelectMenuKitSubmit, SelectMenuKitPredicate } from "./common-pvPJVTfe.js";
|
|
3
|
+
import { UserSelectMenuBuilder, UserSelectMenuInteraction } from "discord.js";
|
|
4
|
+
|
|
5
|
+
//#region src/components/v1/select-menu/UserSelectMenuKit.d.ts
|
|
6
|
+
type OnUserSelectMenuKitSubmit = OnSelectMenuKitSubmit<UserSelectMenuInteraction, UserSelectMenuKit>;
|
|
7
|
+
type UserSelectMenuKitPredicate = SelectMenuKitPredicate<UserSelectMenuInteraction>;
|
|
8
|
+
declare class UserSelectMenuKit extends UserSelectMenuBuilder {
|
|
9
|
+
#private;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the handler to run when the modal is submitted.
|
|
12
|
+
* @param handler - The handler to run when the modal is submitted.
|
|
13
|
+
* @param data - The context data for the interaction collector.
|
|
14
|
+
* @returns This instance of the modal builder.
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const modal = new UserSelectMenuKit()
|
|
18
|
+
* .setTitle('My Modal')
|
|
19
|
+
* .setCustomId('my-modal')
|
|
20
|
+
* .filter((interaction) => interaction.user.id === '1234567890')
|
|
21
|
+
* .onSelect(async (interaction) => {
|
|
22
|
+
* await interaction.reply('You submitted the modal!');
|
|
23
|
+
* })
|
|
24
|
+
* .addComponents(actionRow1, actionRow2);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<UserSelectMenuInteraction, UserSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the handler to run when the interaction collector ends.
|
|
30
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
31
|
+
* @returns This instance of the modal builder.
|
|
32
|
+
*/
|
|
33
|
+
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the handler to run when the interaction collector ends.
|
|
36
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
37
|
+
* @returns This instance of the modal builder.
|
|
38
|
+
*/
|
|
39
|
+
onError(handler: EventInterceptorErrorHandler): this;
|
|
40
|
+
/**
|
|
41
|
+
* Sets a filter for the interaction collector.
|
|
42
|
+
* @param predicate - The filter to use for the interaction collector.
|
|
43
|
+
* @returns This instance of the modal builder.
|
|
44
|
+
*/
|
|
45
|
+
filter(predicate: SelectMenuKitPredicate<UserSelectMenuInteraction>): this;
|
|
46
|
+
private get customId();
|
|
47
|
+
dispose(): this;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { OnUserSelectMenuKitSubmit, UserSelectMenuKit, UserSelectMenuKitPredicate };
|
|
51
|
+
//# sourceMappingURL=UserSelectMenuKit-DiP0imyo.d.ts.map
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
1
|
+
import { AppCommandRunner } from "../../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../../element-D_nyVwgB.js";
|
|
6
|
+
import "../../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../../types-CJ-XvOFN.js";
|
|
8
|
+
import "../../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../../common-pvPJVTfe.js";
|
|
11
|
+
import "../../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../../container-CwEATQy2.js";
|
|
18
|
+
import "../../file-BdyYwkaI.js";
|
|
19
|
+
import "../../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../../section-fktaECHL.js";
|
|
21
|
+
import "../../separator-CuesaLrC.js";
|
|
22
|
+
import "../../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../../index-Dw5cCt-A.js";
|
|
24
|
+
import "../../index-E7Wvm5uX.js";
|
|
25
|
+
import "../../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../../helpers-DAmE106r.js";
|
|
28
|
+
import "../../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../../index-CUPkUUOR.js";
|
|
31
|
+
import "../../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../../types-BDwNROY2.js";
|
|
33
|
+
export { AppCommandRunner };
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
require('../../colors-Cd4Oz-r-.js');
|
|
2
|
+
require('../../ActionRow-CmTHbo2t.js');
|
|
3
|
+
require('../../error-codes-C_UO39jz.js');
|
|
4
|
+
const require_CommandKit = require('../../CommandKit-DDrQtQns.js');
|
|
5
|
+
require('../../common-CcfjYnPG.js');
|
|
6
|
+
require('../../common-CeO-vn8Y.js');
|
|
7
|
+
require('../../container-CpuiLsZM.js');
|
|
8
|
+
require('../../file-DE69SSOP.js');
|
|
9
|
+
require('../../media-gallery-nUEHqKVF.js');
|
|
10
|
+
require('../../section-D6t7tyEZ.js');
|
|
11
|
+
require('../../separator-DYAFK-Jj.js');
|
|
12
|
+
require('../../text-display-Dy6JHB5X.js');
|
|
13
|
+
require('../../v2-DofkPKHs.js');
|
|
14
|
+
require('../../warn-unstable-V20WCBDd.js');
|
|
15
|
+
require('../../element-hdSqnIpC.js');
|
|
16
|
+
require('../../types-B5VPP9ig.js');
|
|
17
|
+
require('../../EventInterceptor-DtRINyTP.js');
|
|
18
|
+
require('../../constants-DOPSzXI0.js');
|
|
19
|
+
require('../../PluginCommon-DPqnQngK.js');
|
|
20
|
+
require('../../CompilerPlugin-XzuGixkC.js');
|
|
21
|
+
require('../../RuntimePlugin-CKsd83M3.js');
|
|
22
|
+
require('../../types-Bq0EWaM3.js');
|
|
23
|
+
require('../../CompilerPluginRuntime-zFCCw1kM.js');
|
|
24
|
+
require('../../types-Cdh4uaFR.js');
|
|
25
|
+
require('../../runtime-ByJtSXs_.js');
|
|
26
|
+
require('../../EventWorkerContext-XZGSHn5F.js');
|
|
27
|
+
require('../../resolve-file-url-pO9_rLft.js');
|
|
28
|
+
require('../../MessageCommandParser-B13Pkwo9.js');
|
|
29
|
+
require('../../signals-Bp0bzjE6.js');
|
|
30
|
+
require('../../types-package-DRhFn59I.js');
|
|
31
|
+
require('../../CommandsRouter-BHaPno8o.js');
|
|
32
|
+
require('../../EventsRouter-CqnrlbjN.js');
|
|
33
|
+
require('../../router-Dn35v30f.js');
|
|
34
|
+
require('../../common-DirpDCa6.js');
|
|
35
|
+
require('../../CommandKitEventsChannel-B6LKgxmv.js');
|
|
36
|
+
require('../../store-Ci6ib2C9.js');
|
|
37
|
+
|
|
38
|
+
exports.AppCommandRunner = require_CommandKit.AppCommandRunner;
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
1
|
+
import { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../../element-D_nyVwgB.js";
|
|
6
|
+
import "../../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../../types-CJ-XvOFN.js";
|
|
8
|
+
import "../../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../../common-pvPJVTfe.js";
|
|
11
|
+
import "../../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../../container-CwEATQy2.js";
|
|
18
|
+
import "../../file-BdyYwkaI.js";
|
|
19
|
+
import "../../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../../section-fktaECHL.js";
|
|
21
|
+
import "../../separator-CuesaLrC.js";
|
|
22
|
+
import "../../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../../index-Dw5cCt-A.js";
|
|
24
|
+
import "../../index-E7Wvm5uX.js";
|
|
25
|
+
import "../../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../../helpers-DAmE106r.js";
|
|
28
|
+
import "../../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../../index-CUPkUUOR.js";
|
|
31
|
+
import "../../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../../types-BDwNROY2.js";
|
|
33
|
+
export { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext };
|
|
@@ -1,3 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
require('../../colors-Cd4Oz-r-.js');
|
|
2
|
+
require('../../ActionRow-CmTHbo2t.js');
|
|
3
|
+
require('../../error-codes-C_UO39jz.js');
|
|
4
|
+
const require_CommandKit = require('../../CommandKit-DDrQtQns.js');
|
|
5
|
+
require('../../common-CcfjYnPG.js');
|
|
6
|
+
require('../../common-CeO-vn8Y.js');
|
|
7
|
+
require('../../container-CpuiLsZM.js');
|
|
8
|
+
require('../../file-DE69SSOP.js');
|
|
9
|
+
require('../../media-gallery-nUEHqKVF.js');
|
|
10
|
+
require('../../section-D6t7tyEZ.js');
|
|
11
|
+
require('../../separator-DYAFK-Jj.js');
|
|
12
|
+
require('../../text-display-Dy6JHB5X.js');
|
|
13
|
+
require('../../v2-DofkPKHs.js');
|
|
14
|
+
require('../../warn-unstable-V20WCBDd.js');
|
|
15
|
+
require('../../element-hdSqnIpC.js');
|
|
16
|
+
require('../../types-B5VPP9ig.js');
|
|
17
|
+
require('../../EventInterceptor-DtRINyTP.js');
|
|
18
|
+
require('../../constants-DOPSzXI0.js');
|
|
19
|
+
require('../../PluginCommon-DPqnQngK.js');
|
|
20
|
+
require('../../CompilerPlugin-XzuGixkC.js');
|
|
21
|
+
require('../../RuntimePlugin-CKsd83M3.js');
|
|
22
|
+
require('../../types-Bq0EWaM3.js');
|
|
23
|
+
require('../../CompilerPluginRuntime-zFCCw1kM.js');
|
|
24
|
+
require('../../types-Cdh4uaFR.js');
|
|
25
|
+
require('../../runtime-ByJtSXs_.js');
|
|
26
|
+
require('../../EventWorkerContext-XZGSHn5F.js');
|
|
27
|
+
require('../../resolve-file-url-pO9_rLft.js');
|
|
28
|
+
require('../../MessageCommandParser-B13Pkwo9.js');
|
|
29
|
+
require('../../signals-Bp0bzjE6.js');
|
|
30
|
+
require('../../types-package-DRhFn59I.js');
|
|
31
|
+
require('../../CommandsRouter-BHaPno8o.js');
|
|
32
|
+
require('../../EventsRouter-CqnrlbjN.js');
|
|
33
|
+
require('../../router-Dn35v30f.js');
|
|
34
|
+
require('../../common-DirpDCa6.js');
|
|
35
|
+
require('../../CommandKitEventsChannel-B6LKgxmv.js');
|
|
36
|
+
require('../../store-Ci6ib2C9.js');
|
|
37
|
+
|
|
38
|
+
exports.CommandExecutionMode = require_CommandKit.CommandExecutionMode;
|
|
39
|
+
exports.Context = require_CommandKit.Context;
|
|
40
|
+
exports.MiddlewareContext = require_CommandKit.MiddlewareContext;
|
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface ParsedMessageCommand {
|
|
5
|
-
command: string;
|
|
6
|
-
options: {
|
|
7
|
-
name: string;
|
|
8
|
-
value: unknown;
|
|
9
|
-
}[];
|
|
10
|
-
subcommand?: string;
|
|
11
|
-
subcommandGroup?: string;
|
|
12
|
-
}
|
|
13
|
-
type MessageCommandOptionsSchema = Record<string, ApplicationCommandOptionType>;
|
|
14
|
-
declare class MessageCommandParser {
|
|
15
|
-
#private;
|
|
16
|
-
message: Message;
|
|
17
|
-
private prefix;
|
|
18
|
-
private schema;
|
|
19
|
-
constructor(message: Message, prefix: string[], schema: (command: string) => MessageCommandOptionsSchema);
|
|
20
|
-
getArgs(): string[];
|
|
21
|
-
get options(): MessageCommandOptions;
|
|
22
|
-
getOption<T>(name: string): T | undefined;
|
|
23
|
-
getCommand(): string;
|
|
24
|
-
getSubcommand(): string | undefined;
|
|
25
|
-
getSubcommandGroup(): string | undefined;
|
|
26
|
-
getPrefix(): string | undefined;
|
|
27
|
-
getFullCommand(): string;
|
|
28
|
-
parse(): ParsedMessageCommand;
|
|
29
|
-
}
|
|
30
|
-
declare class MessageCommandOptions {
|
|
31
|
-
private parser;
|
|
32
|
-
constructor(parser: MessageCommandParser);
|
|
33
|
-
private assertOption;
|
|
34
|
-
getMember(name: string): GuildMember | null;
|
|
35
|
-
getMember(name: string, required: true): GuildMember;
|
|
36
|
-
getAttachment(name: string): Attachment | null;
|
|
37
|
-
getAttachment(name: string, required: true): Attachment;
|
|
38
|
-
getBoolean(name: string): boolean | null;
|
|
39
|
-
getBoolean(name: string, required: true): boolean;
|
|
40
|
-
getNumber(name: string): number | null;
|
|
41
|
-
getNumber(name: string, required: true): number;
|
|
42
|
-
getString(name: string): string | null;
|
|
43
|
-
getString(name: string, required: true): string;
|
|
44
|
-
getInteger(name: string): number | null;
|
|
45
|
-
getInteger(name: string, required: true): number;
|
|
46
|
-
getUser(name: string): User | null;
|
|
47
|
-
getUser(name: string, required: true): User;
|
|
48
|
-
getChannel(name: string): Channel | null;
|
|
49
|
-
getChannel(name: string, required: true): Channel;
|
|
50
|
-
getRole(name: string): Role | null;
|
|
51
|
-
getRole(name: string, required: true): Role;
|
|
52
|
-
getMentionable(name: string): NonNullable<CommandInteractionOption['member' | 'role' | 'user']> | null;
|
|
53
|
-
getMentionable(name: string, required: true): NonNullable<CommandInteractionOption['member' | 'role' | 'user']>;
|
|
54
|
-
getSubcommand(): string | null;
|
|
55
|
-
getSubcommand(required: true): string;
|
|
56
|
-
getSubcommandGroup(): string | null;
|
|
57
|
-
getSubcommandGroup(required: true): string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export { MessageCommandOptions, type MessageCommandOptionsSchema, MessageCommandParser, type ParsedMessageCommand };
|
|
1
|
+
import { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand } from "../../MessageCommandParser-tzroBwij.js";
|
|
2
|
+
export { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
require('../../error-codes-C_UO39jz.js');
|
|
2
|
+
const require_MessageCommandParser = require('../../MessageCommandParser-B13Pkwo9.js');
|
|
3
|
+
|
|
4
|
+
exports.MessageCommandOptions = require_MessageCommandParser.MessageCommandOptions;
|
|
5
|
+
exports.MessageCommandParser = require_MessageCommandParser.MessageCommandParser;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type CommandSource = Interaction | Message;
|
|
4
|
-
declare function isMessageSource(source: CommandSource): source is Message;
|
|
5
|
-
declare function isInteractionSource(source: CommandSource): source is Interaction;
|
|
6
|
-
|
|
7
|
-
export { type CommandSource, isInteractionSource, isMessageSource };
|
|
1
|
+
import { CommandSource, isInteractionSource, isMessageSource } from "../../helpers-DAmE106r.js";
|
|
2
|
+
export { CommandSource, isInteractionSource, isMessageSource };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const require_helpers = require('../../helpers-CswC9gKF.js');
|
|
2
|
+
|
|
3
|
+
exports.isInteractionSource = require_helpers.isInteractionSource;
|
|
4
|
+
exports.isMessageSource = require_helpers.isMessageSource;
|
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import "../../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../../element-D_nyVwgB.js";
|
|
6
|
+
import "../../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../../types-CJ-XvOFN.js";
|
|
8
|
+
import "../../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../../common-pvPJVTfe.js";
|
|
11
|
+
import "../../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../../container-CwEATQy2.js";
|
|
18
|
+
import "../../file-BdyYwkaI.js";
|
|
19
|
+
import "../../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../../section-fktaECHL.js";
|
|
21
|
+
import "../../separator-CuesaLrC.js";
|
|
22
|
+
import "../../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../../index-Dw5cCt-A.js";
|
|
24
|
+
import "../../index-E7Wvm5uX.js";
|
|
25
|
+
import "../../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../../helpers-DAmE106r.js";
|
|
28
|
+
import "../../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../../index-CUPkUUOR.js";
|
|
31
|
+
import "../../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../../types-BDwNROY2.js";
|
|
33
|
+
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-C0e23GNY.js";
|
|
34
|
+
export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const require_EventWorkerContext = require('../../EventWorkerContext-XZGSHn5F.js');
|
|
2
|
+
|
|
3
|
+
exports.eventWorkerContext = require_EventWorkerContext.eventWorkerContext;
|
|
4
|
+
exports.getEventWorkerContext = require_EventWorkerContext.getEventWorkerContext;
|
|
5
|
+
exports.isEventWorkerContext = require_EventWorkerContext.isEventWorkerContext;
|
|
6
|
+
exports.runInEventWorkerContext = require_EventWorkerContext.runInEventWorkerContext;
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
1
|
+
import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../../element-D_nyVwgB.js";
|
|
6
|
+
import "../../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../../types-CJ-XvOFN.js";
|
|
8
|
+
import "../../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../../common-pvPJVTfe.js";
|
|
11
|
+
import "../../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../../container-CwEATQy2.js";
|
|
18
|
+
import "../../file-BdyYwkaI.js";
|
|
19
|
+
import "../../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../../section-fktaECHL.js";
|
|
21
|
+
import "../../separator-CuesaLrC.js";
|
|
22
|
+
import "../../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../../index-Dw5cCt-A.js";
|
|
24
|
+
import "../../index-E7Wvm5uX.js";
|
|
25
|
+
import "../../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../../helpers-DAmE106r.js";
|
|
28
|
+
import "../../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../../index-CUPkUUOR.js";
|
|
31
|
+
import "../../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../../types-BDwNROY2.js";
|
|
33
|
+
export { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand };
|