commandkit 1.2.0-rc.11 → 1.2.0-rc.13
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-DKnFVDME.d.ts → ActionRow-B-CGmjDp.d.ts} +4 -5
- package/dist/{ActionRow-CbdGFWMT.js → ActionRow-CSN_UKmM.js} +3 -4
- package/dist/ActionRow-CSN_UKmM.js.map +1 -0
- package/dist/{Button-4ZUXdA56.d.ts → Button-C-GPeFA3.d.ts} +7 -8
- package/dist/{ButtonKit-C7r7RPNf.d.ts → ButtonKit-DKu0VAe4.d.ts} +37 -38
- package/dist/ChannelSelectMenuKit-HQZ4hH5s.d.ts +66 -0
- package/dist/{CommandKitEventsChannel-BtRzr3Tz.js → CommandKitEventsChannel-CnT5ymYe.js} +2 -2
- package/dist/{CommandKitEventsChannel-BtRzr3Tz.js.map → CommandKitEventsChannel-CnT5ymYe.js.map} +1 -1
- package/dist/{CommandsRouter-CoOA7hkf.d.ts → CommandsRouter-C7dZEepB.d.ts} +49 -50
- package/dist/{CommandsRouter-Dmzw-ikm.js → CommandsRouter-C_HLsrGX.js} +2 -6
- package/dist/{CommandsRouter-Dmzw-ikm.js.map → CommandsRouter-C_HLsrGX.js.map} +1 -1
- package/dist/{CompilerPlugin-M8r3yNAl.js → CompilerPlugin-CUsGAfgl.js} +2 -2
- package/dist/{CompilerPlugin-M8r3yNAl.js.map → CompilerPlugin-CUsGAfgl.js.map} +1 -1
- package/dist/{EventInterceptor-CQEXyUTp.js → EventInterceptor-BWoEJMHZ.js} +1 -1
- package/dist/{EventInterceptor-CQEXyUTp.js.map → EventInterceptor-BWoEJMHZ.js.map} +1 -1
- package/dist/{EventInterceptor-x-R2qshQ.d.ts → EventInterceptor-CZmWpS08.d.ts} +40 -40
- package/dist/{EventWorkerContext-Dq29tieI.js → EventWorkerContext-Dfhgv329.js} +2 -3
- package/dist/EventWorkerContext-Dfhgv329.js.map +1 -0
- package/dist/EventsRouter-DZ37r54v.d.ts +90 -0
- package/dist/{EventsRouter-3Gygh-km.js → EventsRouter-DZYIha6m.js} +2 -6
- package/dist/{EventsRouter-3Gygh-km.js.map → EventsRouter-DZYIha6m.js.map} +1 -1
- package/dist/MentionableSelectMenuKit-7URDUM3-.d.ts +61 -0
- package/dist/{MessageCommandParser-Dl0xxtdr.js → MessageCommandParser-Bs9fimmd.js} +53 -55
- package/dist/{MessageCommandParser-Dl0xxtdr.js.map → MessageCommandParser-Bs9fimmd.js.map} +1 -1
- package/dist/MessageCommandParser-q3dQcE5N.d.ts +194 -0
- package/dist/{Modal-C6UTRdYQ.d.ts → Modal-CZT9MZsy.d.ts} +25 -12
- package/dist/{ModalKit-Btz58KYn.d.ts → ModalKit-BWXI3Z26.d.ts} +34 -35
- package/dist/{PluginCommon-Cvl5yYM_.js → PluginCommon-BLxWww5u.js} +6 -7
- package/dist/{PluginCommon-Cvl5yYM_.js.map → PluginCommon-BLxWww5u.js.map} +1 -1
- package/dist/RoleSelectMenuKit-BY-JJ18w.d.ts +66 -0
- package/dist/{RuntimePlugin-BUecuBIU.js → RuntimePlugin-CtobluSU.js} +2 -2
- package/dist/{RuntimePlugin-BUecuBIU.js.map → RuntimePlugin-CtobluSU.js.map} +1 -1
- package/dist/{SelectMenu-Diy87_ba.d.ts → SelectMenu-q_b3Mjv9.d.ts} +10 -11
- package/dist/StringSelectMenuKit-lVhUMc3g.d.ts +66 -0
- package/dist/UserSelectMenuKit-CCj4Fpkr.d.ts +66 -0
- package/dist/analytics/analytics-engine.d.ts +1 -31
- package/dist/analytics/analytics-engine.js +24 -36
- package/dist/analytics/analytics-provider.d.ts +1 -31
- package/dist/analytics/constants.js +1 -1
- package/dist/analytics/utils.js +24 -36
- package/dist/{analytics-engine-AaAl3kQM.d.ts → analytics-engine-WQhXmx3H.d.ts} +855 -830
- package/dist/app/commands/AppCommandRunner.d.ts +1 -31
- package/dist/app/commands/AppCommandRunner.js +24 -36
- package/dist/app/commands/Context.d.ts +1 -31
- package/dist/app/commands/Context.js +24 -36
- 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 -33
- package/dist/app/events/EventWorkerContext.js +1 -1
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -31
- package/dist/app/handlers/AppCommandHandler.js +24 -36
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -31
- package/dist/app/handlers/AppEventsHandler.js +24 -36
- package/dist/app/index.d.ts +4 -31
- package/dist/app/index.js +24 -37
- 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 -31
- package/dist/app/middlewares/permissions.js +24 -36
- package/dist/app/register/CommandRegistrar.d.ts +1 -31
- package/dist/app/register/CommandRegistrar.js +24 -36
- 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 -31
- package/dist/cli/build.js +191 -41
- package/dist/cli/build.js.map +1 -0
- package/dist/cli/common.d.ts +1 -31
- package/dist/cli/common.js +4 -4
- package/dist/cli/development.d.ts +18 -1
- package/dist/cli/development.js +43 -48
- 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 +102 -38
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/production.d.ts +0 -1
- package/dist/cli/production.js +38 -49
- 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-ZoBBh0Q_.js → commandkit-SIjTLD2R.js} +229 -88
- package/dist/commandkit-SIjTLD2R.js.map +1 -0
- package/dist/commandkit.d.ts +1 -31
- package/dist/commandkit.js +24 -36
- package/dist/{common-vnMIelAE.js → common-CEordwf3.js} +3 -3
- package/dist/common-CEordwf3.js.map +1 -0
- package/dist/{common-CrqwC-sx.js → common-DSRs_mfw.js} +10 -14
- package/dist/{common-CrqwC-sx.js.map → common-DSRs_mfw.js.map} +1 -1
- package/dist/{common-DOCvOVC4.d.ts → common-DnwCYit8.d.ts} +4 -5
- package/dist/components/common/EventInterceptor.d.ts +1 -1
- package/dist/components/common/EventInterceptor.js +1 -1
- package/dist/components/common/element.d.ts +1 -4
- package/dist/components/common/element.js +1 -1
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/common/types.js +0 -1
- package/dist/components/{v2 → display}/common.d.ts +1 -2
- package/dist/components/display/common.js +3 -0
- package/dist/components/display/container.d.ts +2 -0
- package/dist/components/display/container.js +3 -0
- package/dist/components/display/file.d.ts +2 -0
- package/dist/components/display/file.js +3 -0
- package/dist/components/display/index.d.ts +9 -0
- package/dist/components/display/index.js +22 -0
- package/dist/components/display/label.d.ts +2 -0
- package/dist/components/display/label.js +3 -0
- package/dist/components/display/media-gallery.d.ts +2 -0
- package/dist/components/{v2 → display}/media-gallery.js +1 -2
- package/dist/components/display/poll.d.ts +2 -0
- package/dist/components/display/poll.js +5 -0
- package/dist/components/display/section.d.ts +2 -0
- package/dist/components/display/section.js +4 -0
- package/dist/components/display/separator.d.ts +2 -0
- package/dist/components/display/separator.js +3 -0
- package/dist/components/display/text-display.d.ts +2 -0
- package/dist/components/display/text-display.js +3 -0
- package/dist/components/index.d.ts +23 -24
- package/dist/components/index.js +30 -37
- package/dist/components/interactive/action-row/ActionRow.d.ts +2 -0
- package/dist/components/interactive/action-row/ActionRow.js +3 -0
- package/dist/components/interactive/button/Button.d.ts +2 -0
- package/dist/components/interactive/button/Button.js +26 -0
- package/dist/components/interactive/button/ButtonKit.d.ts +2 -0
- package/dist/components/interactive/button/ButtonKit.js +26 -0
- package/dist/components/interactive/modal/Modal.d.ts +2 -0
- package/dist/components/interactive/modal/Modal.js +30 -0
- package/dist/components/interactive/modal/ModalKit.d.ts +2 -0
- package/dist/components/interactive/modal/ModalKit.js +26 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +26 -0
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +26 -0
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +26 -0
- package/dist/components/interactive/select-menu/SelectMenu.d.ts +2 -0
- package/dist/components/interactive/select-menu/SelectMenu.js +31 -0
- package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +26 -0
- package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +26 -0
- package/dist/components/interactive/select-menu/common.d.ts +2 -0
- package/dist/config/config.d.ts +15 -33
- package/dist/config/config.js +24 -36
- package/dist/config/default.d.ts +1 -31
- package/dist/config/default.js +24 -36
- package/dist/config/loader.d.ts +1 -31
- package/dist/config/loader.js +24 -36
- package/dist/config/types.d.ts +1 -31
- package/dist/config/utils.d.ts +1 -31
- package/dist/config/utils.js +1 -1
- package/dist/constants-BFFK-hfP.js +27 -0
- package/dist/{constants-4oxxvaJA.js.map → constants-BFFK-hfP.js.map} +1 -1
- package/dist/{constants-MKu-Q1jh.d.ts → constants-CuYW0K10.d.ts} +14 -8
- package/dist/{constants-BOOGN85p.js → constants-Cw8VjCVz.js} +2 -3
- package/dist/{constants-BOOGN85p.js.map → constants-Cw8VjCVz.js.map} +1 -1
- package/dist/{constants-B5_Ta7PR.js → constants-CxkFFZ7p.js} +16 -1
- package/dist/constants-CxkFFZ7p.js.map +1 -0
- package/dist/{constants-D8PMA9on.d.ts → constants-EpKcj0dH.d.ts} +2 -2
- package/dist/{container-C6GtfAPW.js → container-DCPljKVH.js} +4 -5
- package/dist/container-DCPljKVH.js.map +1 -0
- package/dist/{container-DHBELeJ3.d.ts → container-DYcb7zGw.d.ts} +3 -4
- package/dist/context/async-context.d.ts +1 -31
- package/dist/context/async-context.js +24 -36
- package/dist/context/environment.d.ts +1 -31
- package/dist/context/environment.js +24 -36
- package/dist/{element-Bak9llw_.js → element-DibzzA5L.js} +1 -1
- package/dist/element-DibzzA5L.js.map +1 -0
- package/dist/{element-CAXu1XtK.d.ts → element-wQo0heGj.d.ts} +4 -5
- package/dist/{env-_68PRRoA.js → env-CmspDhHy.js} +7 -3
- package/dist/env-CmspDhHy.js.map +1 -0
- package/dist/error-codes-Ds0bnPvT.js.map +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +1 -31
- package/dist/events/CommandKitEventsChannel.js +1 -1
- package/dist/{file-DVOELoNv.js → file-Ca1kpEtE.js} +3 -4
- package/dist/file-Ca1kpEtE.js.map +1 -0
- package/dist/{file-DTrr-p09.d.ts → file-CrV4lSnl.d.ts} +3 -4
- package/dist/flags/FlagProvider.d.ts +1 -31
- package/dist/flags/feature-flags.d.ts +1 -31
- package/dist/flags/feature-flags.js +165 -40
- package/dist/flags/feature-flags.js.map +1 -0
- package/dist/flags/store.d.ts +1 -31
- package/dist/flags/store.js +1 -1
- package/dist/{helpers-Wg6P5fRQ.d.ts → helpers-AQPLVY35.d.ts} +2 -3
- package/dist/{helpers-Dl8wW6aO.js → helpers-Btx1FSZx.js} +2 -3
- package/dist/{helpers-Dl8wW6aO.js.map → helpers-Btx1FSZx.js.map} +1 -1
- package/dist/index.d.ts +41 -42
- package/dist/index.js +47 -46
- package/dist/index.js.map +1 -1
- 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 -18
- 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-37kaNWMH.d.ts +28 -0
- package/dist/label-B6vXvwLM.js +35 -0
- package/dist/label-B6vXvwLM.js.map +1 -0
- package/dist/logger/DefaultLogger.d.ts +66 -3
- package/dist/logger/DefaultLogger.js +24 -36
- 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 +24 -36
- package/dist/logger/NoopLogger.d.ts +36 -37
- package/dist/{media-gallery-BMsXSot3.d.ts → media-gallery-Ci3I4ElH.d.ts} +3 -4
- package/dist/{media-gallery-zDtJ3kxb.js → media-gallery-u3gjX7yD.js} +4 -5
- package/dist/media-gallery-u3gjX7yD.js.map +1 -0
- package/dist/plugins/CompilerPlugin.d.ts +1 -31
- package/dist/plugins/CompilerPlugin.js +1 -2
- package/dist/plugins/PluginCommon.d.ts +1 -31
- package/dist/plugins/PluginCommon.js +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -31
- package/dist/plugins/RuntimePlugin.js +1 -2
- package/dist/plugins/index.d.ts +1 -31
- package/dist/plugins/index.js +26 -36
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +24 -36
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +24 -36
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -31
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +24 -36
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -31
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +24 -36
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/runtime.js +0 -1
- package/dist/plugins/types.d.ts +1 -31
- package/dist/plugins/types.js +0 -1
- package/dist/poll-CFe8yvoJ.js +100 -0
- package/dist/poll-CFe8yvoJ.js.map +1 -0
- package/dist/poll-Ddtapd6n.d.ts +88 -0
- package/dist/{resolve-file-url-ChIyw-Vf.js → resolve-file-url-CdHqwWs3.js} +2 -2
- package/dist/{resolve-file-url-ChIyw-Vf.js.map → resolve-file-url-CdHqwWs3.js.map} +1 -1
- package/dist/{section-DlvrDoJK.js → section-BC8LF-B2.js} +4 -5
- package/dist/section-BC8LF-B2.js.map +1 -0
- package/dist/{section-Dh_FhPeC.d.ts → section-DkUKULnB.d.ts} +3 -4
- package/dist/{separator-DL6QH5H1.js → separator-BUTiW7uz.js} +3 -4
- package/dist/separator-BUTiW7uz.js.map +1 -0
- package/dist/{separator-CMf6Cyy5.d.ts → separator-CbXsIFCa.d.ts} +3 -4
- package/dist/{signals-ChFMD7mB.js → signals-B8z1wJ6W.js} +2 -2
- package/dist/{signals-ChFMD7mB.js.map → signals-B8z1wJ6W.js.map} +1 -1
- package/dist/{signals-SHg7J1U_.d.ts → signals-BbTgTc0i.d.ts} +2 -2
- package/dist/{store-CM6pWVZh.js → store-D8r_hryO.js} +2 -3
- package/dist/{store-CM6pWVZh.js.map → store-D8r_hryO.js.map} +1 -1
- package/dist/{text-display-DRw3r_lK.d.ts → text-display-D7j39VC-.d.ts} +3 -4
- package/dist/{text-display-DbMumig_.js → text-display-DANahMN3.js} +3 -4
- package/dist/text-display-DANahMN3.js.map +1 -0
- package/dist/{type-checker-ocNSZh0W.js → type-checker-cVd3Hpnh.js} +4 -6
- package/dist/{type-checker-ocNSZh0W.js.map → type-checker-cVd3Hpnh.js.map} +1 -1
- package/dist/{types-CJ-XvOFN.d.ts → types-BywA9d2Z.d.ts} +2 -2
- package/dist/{types-package-BWArjyBF.js → types-package-CsTNfvv2.js} +4 -8
- package/dist/{types-package-BWArjyBF.js.map → types-package-CsTNfvv2.js.map} +1 -1
- package/dist/types.d.ts +1 -31
- 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 -31
- package/dist/utils/dev-hooks.js +24 -36
- 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/async-queue.js +1 -2
- package/dist/utils/useful-stuff/async-queue.js.map +1 -1
- 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 +1 -2
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.d.ts +82 -82
- package/dist/utils/useful-stuff/semaphore.js +1 -3
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.d.ts +113 -2
- package/dist/utils/utilities.js +27 -37
- package/dist/utils/{warn-unstable.d.ts → warning.d.ts} +12 -3
- package/dist/utils/warning.js +5 -0
- package/dist/{utils-KsNof0Xz.js → utils-Br3eenD1.js} +1 -1
- package/dist/{utils-KsNof0Xz.js.map → utils-Br3eenD1.js.map} +1 -1
- package/dist/version.d.ts +8 -2
- package/dist/version.js +12 -2
- package/dist/version.js.map +1 -0
- package/dist/warning-CszH8HeS.js +53 -0
- package/dist/warning-CszH8HeS.js.map +1 -0
- package/hooks.cjs +11 -4
- package/package.json +14 -7
- package/dist/ActionRow-CbdGFWMT.js.map +0 -1
- package/dist/ChannelSelectMenuKit-BrXvBYNH.d.ts +0 -67
- package/dist/DefaultLogger-XCOl5nLd.d.ts +0 -67
- package/dist/EventWorkerContext-Dq29tieI.js.map +0 -1
- package/dist/EventWorkerContext-XNgriym3.d.ts +0 -43
- package/dist/EventsRouter-BacqK6z3.d.ts +0 -90
- package/dist/ILogger-BW8GM-YZ.d.ts +0 -64
- package/dist/Logger-DyfkPk7u.d.ts +0 -37
- package/dist/MentionableSelectMenuKit-CPTKqx-O.d.ts +0 -62
- package/dist/MessageCommandParser-BsGMOTDo.d.ts +0 -195
- package/dist/RoleSelectMenuKit-C26lU3sN.d.ts +0 -67
- package/dist/StringSelectMenuKit-Bhs8U6WI.d.ts +0 -67
- package/dist/UserSelectMenuKit-CfqFJdxz.d.ts +0 -67
- package/dist/app-process-cj2vF12T.js +0 -68
- package/dist/app-process-cj2vF12T.js.map +0 -1
- package/dist/build-B5qTswWF.js +0 -174
- package/dist/build-B5qTswWF.js.map +0 -1
- package/dist/commandkit-ZoBBh0Q_.js.map +0 -1
- package/dist/common-vnMIelAE.js.map +0 -1
- package/dist/components/v1/action-row/ActionRow.d.ts +0 -6
- package/dist/components/v1/action-row/ActionRow.js +0 -3
- package/dist/components/v1/button/Button.d.ts +0 -7
- package/dist/components/v1/button/Button.js +0 -38
- package/dist/components/v1/button/ButtonKit.d.ts +0 -3
- package/dist/components/v1/button/ButtonKit.js +0 -38
- package/dist/components/v1/modal/Modal.d.ts +0 -7
- package/dist/components/v1/modal/Modal.js +0 -41
- package/dist/components/v1/modal/ModalKit.d.ts +0 -3
- package/dist/components/v1/modal/ModalKit.js +0 -38
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/RoleSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/SelectMenu.d.ts +0 -10
- package/dist/components/v1/select-menu/SelectMenu.js +0 -43
- package/dist/components/v1/select-menu/StringSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/UserSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/common.d.ts +0 -3
- package/dist/components/v1/select-menu/common.js +0 -1
- package/dist/components/v2/common.js +0 -3
- package/dist/components/v2/container.d.ts +0 -2
- package/dist/components/v2/container.js +0 -4
- package/dist/components/v2/file.d.ts +0 -2
- package/dist/components/v2/file.js +0 -3
- package/dist/components/v2/index.d.ts +0 -8
- package/dist/components/v2/index.js +0 -17
- package/dist/components/v2/media-gallery.d.ts +0 -2
- package/dist/components/v2/section.d.ts +0 -2
- package/dist/components/v2/section.js +0 -5
- package/dist/components/v2/separator.d.ts +0 -2
- package/dist/components/v2/separator.js +0 -3
- package/dist/components/v2/text-display.d.ts +0 -2
- package/dist/components/v2/text-display.js +0 -3
- package/dist/config-D-JMp2IO.d.ts +0 -16
- package/dist/constants-4oxxvaJA.js +0 -27
- package/dist/constants-B5_Ta7PR.js.map +0 -1
- package/dist/container-C6GtfAPW.js.map +0 -1
- package/dist/dotprops-tnhpnszJ.js +0 -36
- package/dist/dotprops-tnhpnszJ.js.map +0 -1
- package/dist/element-Bak9llw_.js.map +0 -1
- package/dist/env-_68PRRoA.js.map +0 -1
- package/dist/error-codes-B4TyW4Ct.d.ts +0 -54
- package/dist/feature-flags-CKNrjgqg.js +0 -160
- package/dist/feature-flags-CKNrjgqg.js.map +0 -1
- package/dist/file-DVOELoNv.js.map +0 -1
- package/dist/init-DOr-Y3GQ.d.ts +0 -13
- package/dist/init-_7_QDifv.js +0 -95
- package/dist/init-_7_QDifv.js.map +0 -1
- package/dist/media-gallery-zDtJ3kxb.js.map +0 -1
- package/dist/resolve-file-url-yO8bUxok.d.ts +0 -11
- package/dist/section-DlvrDoJK.js.map +0 -1
- package/dist/separator-DL6QH5H1.js.map +0 -1
- package/dist/serde-BYaKrsOV.d.ts +0 -12
- package/dist/serde-Cc8iUa9J.js +0 -97
- package/dist/serde-Cc8iUa9J.js.map +0 -1
- package/dist/text-display-DbMumig_.js.map +0 -1
- package/dist/utilities-DtdPlr4c.d.ts +0 -87
- package/dist/utils/warn-unstable.js +0 -26
- package/dist/utils/warn-unstable.js.map +0 -1
- package/dist/utils-DCSnVAZ6.js +0 -23
- package/dist/utils-DCSnVAZ6.js.map +0 -1
- package/dist/v2-DofkPKHs.js +0 -0
- package/dist/version--Q1nmlBz.js +0 -18
- package/dist/version--Q1nmlBz.js.map +0 -1
- package/dist/version-CtJtBJXI.d.ts +0 -8
- /package/dist/{ILogger-dQ7Y9X1f.js → common-C2jAjX4U.js} +0 -0
- /package/dist/{app-HN1cVg8J.js → components/interactive/select-menu/common.js} +0 -0
- /package/dist/{common-CcfjYnPG.js → display-WDb9wMCv.js} +0 -0
- /package/dist/{index-CUPkUUOR.d.ts → index-BJfko-dP.d.ts} +0 -0
- /package/dist/{index-Dw5cCt-A.d.ts → index-CCggO_hw.d.ts} +0 -0
- /package/dist/{index-E7Wvm5uX.d.ts → index-CLjpoGi1.d.ts} +0 -0
- /package/dist/{router-Dn35v30f.js → router-BvamdzoF.js} +0 -0
- /package/dist/{runtime-DB9CiPfe.js → runtime-Skt5NiOc.js} +0 -0
- /package/dist/{types-CUZOquUl.js → types-Cdh4uaFR.js} +0 -0
- /package/dist/{types-q0Nm882H.js → types-TC4g3w91.js} +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CommandKit } from "./analytics-engine-AaAl3kQM.js";
|
|
2
|
-
import { ParsedEvent } from "./EventsRouter-BacqK6z3.js";
|
|
3
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
|
-
|
|
5
|
-
//#region src/app/events/EventWorkerContext.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Context object containing information about the currently executing event.
|
|
9
|
-
*/
|
|
10
|
-
interface EventWorkerContext {
|
|
11
|
-
event: string;
|
|
12
|
-
namespace: string | null;
|
|
13
|
-
data: ParsedEvent;
|
|
14
|
-
commandkit: CommandKit;
|
|
15
|
-
arguments: any[];
|
|
16
|
-
variables: Map<string, any>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Async local storage for event worker context.
|
|
20
|
-
*/
|
|
21
|
-
declare const eventWorkerContext: AsyncLocalStorage<EventWorkerContext>;
|
|
22
|
-
/**
|
|
23
|
-
* Runs a callback within an event worker context.
|
|
24
|
-
* @param context - The event worker context
|
|
25
|
-
* @param callback - The callback to execute
|
|
26
|
-
* @returns The result of the callback
|
|
27
|
-
*/
|
|
28
|
-
declare function runInEventWorkerContext<T>(context: EventWorkerContext, callback: () => T): T;
|
|
29
|
-
/**
|
|
30
|
-
* Gets the current event worker context.
|
|
31
|
-
* @returns The current event worker context
|
|
32
|
-
* @throws Error if no context is found
|
|
33
|
-
*/
|
|
34
|
-
declare function getEventWorkerContext(): EventWorkerContext;
|
|
35
|
-
/**
|
|
36
|
-
* Type guard to check if an object is an event worker context.
|
|
37
|
-
* @param worker - The object to check
|
|
38
|
-
* @returns True if the object is an event worker context
|
|
39
|
-
*/
|
|
40
|
-
declare function isEventWorkerContext(worker: any): worker is EventWorkerContext;
|
|
41
|
-
//#endregion
|
|
42
|
-
export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
|
|
43
|
-
//# sourceMappingURL=EventWorkerContext-XNgriym3.d.ts.map
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
//#region src/app/router/EventsRouter.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Configuration options for the EventsRouter
|
|
4
|
-
* @interface EventsRouterOptions
|
|
5
|
-
*/
|
|
6
|
-
interface EventsRouterOptions {
|
|
7
|
-
/** Root directory path where event handlers are located */
|
|
8
|
-
entrypoints: string[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Represents a parsed event with its handlers
|
|
12
|
-
* @interface ParsedEvent
|
|
13
|
-
*/
|
|
14
|
-
interface ParsedEvent {
|
|
15
|
-
/** Name of the event derived from directory name */
|
|
16
|
-
event: string;
|
|
17
|
-
/** Absolute path to the event directory */
|
|
18
|
-
path: string;
|
|
19
|
-
/** Array of file paths to event listener handlers */
|
|
20
|
-
listeners: string[];
|
|
21
|
-
/** Namespace of the event */
|
|
22
|
-
namespace: string | null;
|
|
23
|
-
}
|
|
24
|
-
/** Collection of event names to their parsed metadata */
|
|
25
|
-
type EventsTree = Record<string, ParsedEvent>;
|
|
26
|
-
/**
|
|
27
|
-
* Router for discovering and managing event handler files in a directory structure.
|
|
28
|
-
* Events are represented by directories, and handlers are files within those directories.
|
|
29
|
-
*/
|
|
30
|
-
declare class EventsRouter {
|
|
31
|
-
private options;
|
|
32
|
-
/** Internal storage of parsed events */
|
|
33
|
-
private events;
|
|
34
|
-
/**
|
|
35
|
-
* Creates a new EventsRouter instance
|
|
36
|
-
* @param options - Configuration options for the router
|
|
37
|
-
* @throws Error if entrypoint is not provided
|
|
38
|
-
*/
|
|
39
|
-
constructor(options: EventsRouterOptions);
|
|
40
|
-
/**
|
|
41
|
-
* Adds new entrypoints to the router
|
|
42
|
-
* @param entrypoints - Array of new entrypoint paths
|
|
43
|
-
*/
|
|
44
|
-
addEntrypoints(entrypoints: string[]): void;
|
|
45
|
-
/**
|
|
46
|
-
* Find a parsed event by its name
|
|
47
|
-
* @param event - Name of the event to find
|
|
48
|
-
* @returns Parsed event metadata or null if not found
|
|
49
|
-
*/
|
|
50
|
-
match(event: string): ParsedEvent | null;
|
|
51
|
-
/**
|
|
52
|
-
* Get the entrypoint directory path
|
|
53
|
-
* @returns Entrypoint directory path
|
|
54
|
-
*/
|
|
55
|
-
get entrypoints(): string[];
|
|
56
|
-
/**
|
|
57
|
-
* Checks if the entrypoint path is valid
|
|
58
|
-
*/
|
|
59
|
-
isValidPath(): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Clear all parsed events
|
|
62
|
-
*/
|
|
63
|
-
clear(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Reload and re-scan the entrypoint directory for events
|
|
66
|
-
* @returns Promise resolving to the updated events tree
|
|
67
|
-
*/
|
|
68
|
-
reload(): Promise<EventsTree>;
|
|
69
|
-
/**
|
|
70
|
-
* Scan the entrypoint directory for events and their handlers
|
|
71
|
-
* @returns Promise resolving to the events tree
|
|
72
|
-
*/
|
|
73
|
-
scan(): Promise<EventsTree>;
|
|
74
|
-
/**
|
|
75
|
-
* Convert the internal events Collection to a plain object
|
|
76
|
-
* @returns Events tree as a plain object
|
|
77
|
-
*/
|
|
78
|
-
toJSON(): EventsTree;
|
|
79
|
-
/**
|
|
80
|
-
* Recursively scan a directory for event handlers
|
|
81
|
-
* @param event - Name of the event
|
|
82
|
-
* @param path - Path to the event directory
|
|
83
|
-
* @param listeners - Array to collect listener file paths
|
|
84
|
-
* @returns Promise resolving to the parsed event metadata
|
|
85
|
-
*/
|
|
86
|
-
private scanEvent;
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
export { EventsRouter, EventsRouterOptions, EventsTree, ParsedEvent };
|
|
90
|
-
//# sourceMappingURL=EventsRouter-BacqK6z3.d.ts.map
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
//#region src/logger/ILogger.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* ILogger interface for logging functionality.
|
|
4
|
-
*/
|
|
5
|
-
interface ILogger {
|
|
6
|
-
/**
|
|
7
|
-
* Logs a message with the default log level.
|
|
8
|
-
* @param message The message to log.
|
|
9
|
-
*/
|
|
10
|
-
log(message: any): void;
|
|
11
|
-
/**
|
|
12
|
-
* Logs a message with the default log level using template literals.
|
|
13
|
-
* @param strings The template literal strings.
|
|
14
|
-
* @param values The values to interpolate.
|
|
15
|
-
*/
|
|
16
|
-
log(strings: TemplateStringsArray, ...values: any[]): void;
|
|
17
|
-
/**
|
|
18
|
-
* Logs an error message.
|
|
19
|
-
* @param message The error message to log.
|
|
20
|
-
*/
|
|
21
|
-
error(message: any): void;
|
|
22
|
-
/**
|
|
23
|
-
* Logs an error message using template literals.
|
|
24
|
-
* @param strings The template literal strings.
|
|
25
|
-
* @param values The values to interpolate.
|
|
26
|
-
*/
|
|
27
|
-
error(strings: TemplateStringsArray, ...values: any[]): void;
|
|
28
|
-
/**
|
|
29
|
-
* Logs a warning message.
|
|
30
|
-
* @param message The warning message to log.
|
|
31
|
-
*/
|
|
32
|
-
warn(message: any): void;
|
|
33
|
-
/**
|
|
34
|
-
* Logs a warning message using template literals.
|
|
35
|
-
* @param strings The template literal strings.
|
|
36
|
-
* @param values The values to interpolate.
|
|
37
|
-
*/
|
|
38
|
-
warn(strings: TemplateStringsArray, ...values: any[]): void;
|
|
39
|
-
/**
|
|
40
|
-
* Logs an informational message.
|
|
41
|
-
* @param message The informational message to log.
|
|
42
|
-
*/
|
|
43
|
-
info(message: any): void;
|
|
44
|
-
/**
|
|
45
|
-
* Logs an informational message using template literals.
|
|
46
|
-
* @param strings The template literal strings.
|
|
47
|
-
* @param values The values to interpolate.
|
|
48
|
-
*/
|
|
49
|
-
info(strings: TemplateStringsArray, ...values: any[]): void;
|
|
50
|
-
/**
|
|
51
|
-
* Logs a debug message.
|
|
52
|
-
* @param message The debug message to log.
|
|
53
|
-
*/
|
|
54
|
-
debug(message: any): void;
|
|
55
|
-
/**
|
|
56
|
-
* Logs a debug message using template literals.
|
|
57
|
-
* @param strings The template literal strings.
|
|
58
|
-
* @param values The values to interpolate.
|
|
59
|
-
*/
|
|
60
|
-
debug(strings: TemplateStringsArray, ...values: any[]): void;
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { ILogger };
|
|
64
|
-
//# sourceMappingURL=ILogger-BW8GM-YZ.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ILogger } from "./ILogger-BW8GM-YZ.js";
|
|
2
|
-
|
|
3
|
-
//#region src/logger/Logger.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Options for configuring the CommandKit logger.
|
|
7
|
-
*/
|
|
8
|
-
interface CommandKitLoggerOptions {
|
|
9
|
-
/**
|
|
10
|
-
* The logger provider to use.
|
|
11
|
-
*/
|
|
12
|
-
provider: ILogger;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Logger implementation for CommandKit.
|
|
16
|
-
*/
|
|
17
|
-
interface LoggerImpl extends ILogger {
|
|
18
|
-
/**
|
|
19
|
-
* Configures the logger with the specified options.
|
|
20
|
-
* @param options The logger options to apply.
|
|
21
|
-
*/
|
|
22
|
-
configure(options: CommandKitLoggerOptions): void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Creates a new logger instance with the specified options.
|
|
26
|
-
* @param options The options for configuring the logger.
|
|
27
|
-
* @returns A new logger instance.
|
|
28
|
-
*/
|
|
29
|
-
declare function createLogger(options: CommandKitLoggerOptions): LoggerImpl;
|
|
30
|
-
/**
|
|
31
|
-
* Default logger instance for CommandKit. This logger uses the DefaultLogger as its provider.
|
|
32
|
-
* The provider can be replaced with a custom logger implementation using the `configure` method.
|
|
33
|
-
*/
|
|
34
|
-
declare const Logger: LoggerImpl;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { CommandKitLoggerOptions, Logger, LoggerImpl, createLogger };
|
|
37
|
-
//# sourceMappingURL=Logger-DyfkPk7u.d.ts.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { EventInterceptorErrorHandler } from "./EventInterceptor-x-R2qshQ.js";
|
|
2
|
-
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, OnSelectMenuKitSubmit, SelectMenuKitPredicate } from "./common-DOCvOVC4.js";
|
|
3
|
-
import { MentionableSelectMenuBuilder, MentionableSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
|
-
//#region src/components/v1/select-menu/MentionableSelectMenuKit.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Type for the handler function that is called when the mentionable select menu is submitted.
|
|
9
|
-
*/
|
|
10
|
-
type OnMentionableSelectMenuKitSubmit = OnSelectMenuKitSubmit<MentionableSelectMenuInteraction, MentionableSelectMenuKit>;
|
|
11
|
-
/**
|
|
12
|
-
* Type for the predicate function that filters mentionable select menu interactions.
|
|
13
|
-
* It receives a MentionableSelectMenuInteraction and returns a boolean or a Promise that resolves to a boolean.
|
|
14
|
-
*/
|
|
15
|
-
type MentionableSelectMenuKitPredicate = SelectMenuKitPredicate<MentionableSelectMenuInteraction>;
|
|
16
|
-
declare class MentionableSelectMenuKit extends MentionableSelectMenuBuilder {
|
|
17
|
-
#private;
|
|
18
|
-
/**
|
|
19
|
-
* Sets the handler to run when the modal is submitted.
|
|
20
|
-
* @param handler - The handler to run when the modal is submitted.
|
|
21
|
-
* @param data - The context data for the interaction collector.
|
|
22
|
-
* @returns This instance of the modal builder.
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const modal = new MentionableSelectMenuKit()
|
|
26
|
-
* .setTitle('My Modal')
|
|
27
|
-
* .setCustomId('my-modal')
|
|
28
|
-
* .filter((interaction) => interaction.Mentionable.id === '1234567890')
|
|
29
|
-
* .onSelect(async (interaction) => {
|
|
30
|
-
* await interaction.reply('You submitted the modal!');
|
|
31
|
-
* })
|
|
32
|
-
* .addComponents(actionRow1, actionRow2);
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<MentionableSelectMenuInteraction, MentionableSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the handler to run when the interaction collector ends.
|
|
38
|
-
* @param handler - The handler to run when the interaction collector ends.
|
|
39
|
-
* @returns This instance of the modal builder.
|
|
40
|
-
*/
|
|
41
|
-
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
42
|
-
/**
|
|
43
|
-
* Sets the handler to run when the interaction collector ends.
|
|
44
|
-
* @param handler - The handler to run when the interaction collector ends.
|
|
45
|
-
* @returns This instance of the modal builder.
|
|
46
|
-
*/
|
|
47
|
-
onError(handler: EventInterceptorErrorHandler): this;
|
|
48
|
-
/**
|
|
49
|
-
* Sets a filter for the interaction collector.
|
|
50
|
-
* @param predicate - The filter to use for the interaction collector.
|
|
51
|
-
* @returns This instance of the modal builder.
|
|
52
|
-
*/
|
|
53
|
-
filter(predicate: SelectMenuKitPredicate<MentionableSelectMenuInteraction>): this;
|
|
54
|
-
private get customId();
|
|
55
|
-
/**
|
|
56
|
-
* Disposes of the mentionable select menu kit, cleaning up any resources used by the interaction collector.
|
|
57
|
-
*/
|
|
58
|
-
dispose(): this;
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
export { MentionableSelectMenuKit, MentionableSelectMenuKitPredicate, OnMentionableSelectMenuKitSubmit };
|
|
62
|
-
//# sourceMappingURL=MentionableSelectMenuKit-CPTKqx-O.d.ts.map
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { ApplicationCommandOptionType, Attachment, CommandInteractionOption, GuildMember, Message, Role, User } from "discord.js";
|
|
2
|
-
import { Channel } from "diagnostics_channel";
|
|
3
|
-
|
|
4
|
-
//#region src/app/commands/MessageCommandParser.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Represents a parsed message command with its components.
|
|
8
|
-
*/
|
|
9
|
-
interface ParsedMessageCommand {
|
|
10
|
-
command: string;
|
|
11
|
-
options: {
|
|
12
|
-
name: string;
|
|
13
|
-
value: unknown;
|
|
14
|
-
}[];
|
|
15
|
-
subcommand?: string;
|
|
16
|
-
subcommandGroup?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Schema defining the types of options for a message command.
|
|
20
|
-
*/
|
|
21
|
-
type MessageCommandOptionsSchema = Record<string, ApplicationCommandOptionType>;
|
|
22
|
-
/**
|
|
23
|
-
* Parses message content into structured command data with options and subcommands.
|
|
24
|
-
*/
|
|
25
|
-
declare class MessageCommandParser {
|
|
26
|
-
#private;
|
|
27
|
-
message: Message;
|
|
28
|
-
private prefix;
|
|
29
|
-
private schema;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a new message command parser.
|
|
32
|
-
* @param message - The Discord message to parse
|
|
33
|
-
* @param prefix - Array of valid command prefixes or a regular expression
|
|
34
|
-
* @param schema - Function that returns the options schema for a command
|
|
35
|
-
*/
|
|
36
|
-
constructor(message: Message, prefix: string[] | RegExp, schema: (command: string) => MessageCommandOptionsSchema);
|
|
37
|
-
/**
|
|
38
|
-
* Gets the parsed command arguments.
|
|
39
|
-
* @returns Array of command arguments
|
|
40
|
-
*/
|
|
41
|
-
getArgs(): string[];
|
|
42
|
-
/**
|
|
43
|
-
* Gets the message command options object for easy access to typed option values.
|
|
44
|
-
*/
|
|
45
|
-
get options(): MessageCommandOptions;
|
|
46
|
-
/**
|
|
47
|
-
* Gets a specific option value by name.
|
|
48
|
-
* @param name - The option name
|
|
49
|
-
* @returns The option value or undefined if not found
|
|
50
|
-
*/
|
|
51
|
-
getOption<T>(name: string): T | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Gets the main command name.
|
|
54
|
-
* @returns The command name
|
|
55
|
-
*/
|
|
56
|
-
getCommand(): string;
|
|
57
|
-
/**
|
|
58
|
-
* Gets the subcommand name if present.
|
|
59
|
-
* @returns The subcommand name or undefined
|
|
60
|
-
*/
|
|
61
|
-
getSubcommand(): string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Gets the subcommand group name if present.
|
|
64
|
-
* @returns The subcommand group name or undefined
|
|
65
|
-
*/
|
|
66
|
-
getSubcommandGroup(): string | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Gets the prefix used in the message.
|
|
69
|
-
* @returns The matched prefix or undefined
|
|
70
|
-
*/
|
|
71
|
-
getPrefix(): string | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Gets the full command including subcommand group and subcommand.
|
|
74
|
-
* @returns The complete command string
|
|
75
|
-
*/
|
|
76
|
-
getFullCommand(): string;
|
|
77
|
-
/**
|
|
78
|
-
* Parses the message content into structured command data.
|
|
79
|
-
* @returns The parsed command data
|
|
80
|
-
*/
|
|
81
|
-
parse(): ParsedMessageCommand;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Provides typed access to message command options with methods similar to Discord.js interaction options.
|
|
85
|
-
*/
|
|
86
|
-
declare class MessageCommandOptions {
|
|
87
|
-
private parser;
|
|
88
|
-
/**
|
|
89
|
-
* Creates a new message command options instance.
|
|
90
|
-
* @param parser - The message command parser instance
|
|
91
|
-
*/
|
|
92
|
-
constructor(parser: MessageCommandParser);
|
|
93
|
-
/**
|
|
94
|
-
* @private
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
private assertOption;
|
|
98
|
-
/**
|
|
99
|
-
* Gets a guild member from the command options.
|
|
100
|
-
* @param name - The option name
|
|
101
|
-
* @param required - Whether the option is required
|
|
102
|
-
* @returns The guild member or null if not found
|
|
103
|
-
*/
|
|
104
|
-
getMember(name: string): GuildMember | null;
|
|
105
|
-
getMember(name: string, required: true): GuildMember;
|
|
106
|
-
/**
|
|
107
|
-
* Gets an attachment from the command options.
|
|
108
|
-
* @param name - The option name
|
|
109
|
-
* @param required - Whether the option is required
|
|
110
|
-
* @returns The attachment or null if not found
|
|
111
|
-
*/
|
|
112
|
-
getAttachment(name: string): Attachment | null;
|
|
113
|
-
getAttachment(name: string, required: true): Attachment;
|
|
114
|
-
/**
|
|
115
|
-
* Gets a boolean value from the command options.
|
|
116
|
-
* @param name - The option name
|
|
117
|
-
* @param required - Whether the option is required
|
|
118
|
-
* @returns The boolean value or null if not found
|
|
119
|
-
*/
|
|
120
|
-
getBoolean(name: string): boolean | null;
|
|
121
|
-
getBoolean(name: string, required: true): boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Gets a number value from the command options.
|
|
124
|
-
* @param name - The option name
|
|
125
|
-
* @param required - Whether the option is required
|
|
126
|
-
* @returns The number value or null if not found
|
|
127
|
-
*/
|
|
128
|
-
getNumber(name: string): number | null;
|
|
129
|
-
getNumber(name: string, required: true): number;
|
|
130
|
-
/**
|
|
131
|
-
* Gets a string value from the command options.
|
|
132
|
-
* @param name - The option name
|
|
133
|
-
* @param required - Whether the option is required
|
|
134
|
-
* @returns The string value or null if not found
|
|
135
|
-
*/
|
|
136
|
-
getString(name: string): string | null;
|
|
137
|
-
getString(name: string, required: true): string;
|
|
138
|
-
/**
|
|
139
|
-
* Gets an integer value from the command options.
|
|
140
|
-
* @param name - The option name
|
|
141
|
-
* @param required - Whether the option is required
|
|
142
|
-
* @returns The integer value or null if not found
|
|
143
|
-
*/
|
|
144
|
-
getInteger(name: string): number | null;
|
|
145
|
-
getInteger(name: string, required: true): number;
|
|
146
|
-
/**
|
|
147
|
-
* Gets a user from the command options.
|
|
148
|
-
* @param name - The option name
|
|
149
|
-
* @param required - Whether the option is required
|
|
150
|
-
* @returns The user or null if not found
|
|
151
|
-
*/
|
|
152
|
-
getUser(name: string): User | null;
|
|
153
|
-
getUser(name: string, required: true): User;
|
|
154
|
-
/**
|
|
155
|
-
* Gets a channel from the command options.
|
|
156
|
-
* @param name - The option name
|
|
157
|
-
* @param required - Whether the option is required
|
|
158
|
-
* @returns The channel or null if not found
|
|
159
|
-
*/
|
|
160
|
-
getChannel(name: string): Channel | null;
|
|
161
|
-
getChannel(name: string, required: true): Channel;
|
|
162
|
-
/**
|
|
163
|
-
* Gets a role from the command options.
|
|
164
|
-
* @param name - The option name
|
|
165
|
-
* @param required - Whether the option is required
|
|
166
|
-
* @returns The role or null if not found
|
|
167
|
-
*/
|
|
168
|
-
getRole(name: string): Role | null;
|
|
169
|
-
getRole(name: string, required: true): Role;
|
|
170
|
-
/**
|
|
171
|
-
* Gets a mentionable (user, member, or role) from the command options.
|
|
172
|
-
* @param name - The option name
|
|
173
|
-
* @param required - Whether the option is required
|
|
174
|
-
* @returns The mentionable or null if not found
|
|
175
|
-
*/
|
|
176
|
-
getMentionable(name: string): NonNullable<CommandInteractionOption['member' | 'role' | 'user']> | null;
|
|
177
|
-
getMentionable(name: string, required: true): NonNullable<CommandInteractionOption['member' | 'role' | 'user']>;
|
|
178
|
-
/**
|
|
179
|
-
* Gets the subcommand name from the command.
|
|
180
|
-
* @param required - Whether the subcommand is required
|
|
181
|
-
* @returns The subcommand name or null if not found
|
|
182
|
-
*/
|
|
183
|
-
getSubcommand(): string | null;
|
|
184
|
-
getSubcommand(required: true): string;
|
|
185
|
-
/**
|
|
186
|
-
* Gets the subcommand group name from the command.
|
|
187
|
-
* @param required - Whether the subcommand group is required
|
|
188
|
-
* @returns The subcommand group name or null if not found
|
|
189
|
-
*/
|
|
190
|
-
getSubcommandGroup(): string | null;
|
|
191
|
-
getSubcommandGroup(required: true): string;
|
|
192
|
-
}
|
|
193
|
-
//#endregion
|
|
194
|
-
export { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand };
|
|
195
|
-
//# sourceMappingURL=MessageCommandParser-BsGMOTDo.d.ts.map
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { EventInterceptorErrorHandler } from "./EventInterceptor-x-R2qshQ.js";
|
|
2
|
-
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, OnSelectMenuKitSubmit, SelectMenuKitPredicate } from "./common-DOCvOVC4.js";
|
|
3
|
-
import { RoleSelectMenuBuilder, RoleSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
|
-
//#region src/components/v1/select-menu/RoleSelectMenuKit.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Type for the handler function that is called when the role select menu is submitted.
|
|
9
|
-
*/
|
|
10
|
-
type OnRoleSelectMenuKitSubmit = OnSelectMenuKitSubmit<RoleSelectMenuInteraction, RoleSelectMenuKit>;
|
|
11
|
-
/**
|
|
12
|
-
* Type for the predicate function that filters role select menu interactions.
|
|
13
|
-
* It receives a RoleSelectMenuInteraction and returns a boolean or a Promise that resolves to a boolean.
|
|
14
|
-
*/
|
|
15
|
-
type RoleSelectMenuKitPredicate = SelectMenuKitPredicate<RoleSelectMenuInteraction>;
|
|
16
|
-
/**
|
|
17
|
-
* A builder for creating role select menus with additional features like interaction collectors and event handling.
|
|
18
|
-
* This class extends the RoleSelectMenuBuilder from discord.js and adds methods for handling interactions.
|
|
19
|
-
* It allows you to set a handler for when the role select menu is submitted, filter interactions, and handle the end of the interaction collector.
|
|
20
|
-
*/
|
|
21
|
-
declare class RoleSelectMenuKit extends RoleSelectMenuBuilder {
|
|
22
|
-
#private;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the handler to run when the modal is submitted.
|
|
25
|
-
* @param handler - The handler to run when the modal is submitted.
|
|
26
|
-
* @param data - The context data for the interaction collector.
|
|
27
|
-
* @returns This instance of the modal builder.
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const modal = new RoleSelectMenuKit()
|
|
31
|
-
* .setTitle('My Modal')
|
|
32
|
-
* .setCustomId('my-modal')
|
|
33
|
-
* .filter((interaction) => interaction.Role.id === '1234567890')
|
|
34
|
-
* .onSelect(async (interaction) => {
|
|
35
|
-
* await interaction.reply('You submitted the modal!');
|
|
36
|
-
* })
|
|
37
|
-
* .addComponents(actionRow1, actionRow2);
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<RoleSelectMenuInteraction, RoleSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the handler to run when the interaction collector ends.
|
|
43
|
-
* @param handler - The handler to run when the interaction collector ends.
|
|
44
|
-
* @returns This instance of the modal builder.
|
|
45
|
-
*/
|
|
46
|
-
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the handler to run when the interaction collector ends.
|
|
49
|
-
* @param handler - The handler to run when the interaction collector ends.
|
|
50
|
-
* @returns This instance of the modal builder.
|
|
51
|
-
*/
|
|
52
|
-
onError(handler: EventInterceptorErrorHandler): this;
|
|
53
|
-
/**
|
|
54
|
-
* Sets a filter for the interaction collector.
|
|
55
|
-
* @param predicate - The filter to use for the interaction collector.
|
|
56
|
-
* @returns This instance of the modal builder.
|
|
57
|
-
*/
|
|
58
|
-
filter(predicate: SelectMenuKitPredicate<RoleSelectMenuInteraction>): this;
|
|
59
|
-
private get customId();
|
|
60
|
-
/**
|
|
61
|
-
* Disposes of the role select menu kit, cleaning up any resources and event listeners.
|
|
62
|
-
*/
|
|
63
|
-
dispose(): this;
|
|
64
|
-
}
|
|
65
|
-
//#endregion
|
|
66
|
-
export { OnRoleSelectMenuKitSubmit, RoleSelectMenuKit, RoleSelectMenuKitPredicate };
|
|
67
|
-
//# sourceMappingURL=RoleSelectMenuKit-C26lU3sN.d.ts.map
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { EventInterceptorErrorHandler } from "./EventInterceptor-x-R2qshQ.js";
|
|
2
|
-
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, OnSelectMenuKitSubmit, SelectMenuKitPredicate } from "./common-DOCvOVC4.js";
|
|
3
|
-
import { StringSelectMenuBuilder, StringSelectMenuInteraction } from "discord.js";
|
|
4
|
-
|
|
5
|
-
//#region src/components/v1/select-menu/StringSelectMenuKit.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Type for the handler function that is called when the string select menu is submitted.
|
|
9
|
-
*/
|
|
10
|
-
type OnStringSelectMenuKitSubmit = OnSelectMenuKitSubmit<StringSelectMenuInteraction, StringSelectMenuKit>;
|
|
11
|
-
/**
|
|
12
|
-
* Type for the predicate function that filters string select menu interactions.
|
|
13
|
-
* It receives a StringSelectMenuInteraction and returns a boolean or a Promise that resolves to a boolean.
|
|
14
|
-
*/
|
|
15
|
-
type StringSelectMenuKitPredicate = SelectMenuKitPredicate<StringSelectMenuInteraction>;
|
|
16
|
-
/**
|
|
17
|
-
* A builder for creating string select menus with additional features like interaction collectors and event handling.
|
|
18
|
-
* This class extends the StringSelectMenuBuilder from discord.js and adds methods for handling interactions.
|
|
19
|
-
* It allows you to set a handler for when the string select menu is submitted, filter interactions, and handle the end of the interaction collector.
|
|
20
|
-
*/
|
|
21
|
-
declare class StringSelectMenuKit extends StringSelectMenuBuilder {
|
|
22
|
-
#private;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the handler to run when the modal is submitted.
|
|
25
|
-
* @param handler - The handler to run when the modal is submitted.
|
|
26
|
-
* @param data - The context data for the interaction collector.
|
|
27
|
-
* @returns This instance of the modal builder.
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const modal = new StringSelectMenuKit()
|
|
31
|
-
* .setTitle('My Modal')
|
|
32
|
-
* .setCustomId('my-modal')
|
|
33
|
-
* .filter((interaction) => interaction.user.id === '1234567890')
|
|
34
|
-
* .onSelect(async (interaction) => {
|
|
35
|
-
* await interaction.reply('You submitted the modal!');
|
|
36
|
-
* })
|
|
37
|
-
* .addComponents(actionRow1, actionRow2);
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<StringSelectMenuInteraction, StringSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the handler to run when the interaction collector ends.
|
|
43
|
-
* @param handler - The handler to run when the interaction collector ends.
|
|
44
|
-
* @returns This instance of the modal builder.
|
|
45
|
-
*/
|
|
46
|
-
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the handler to run when the interaction collector ends.
|
|
49
|
-
* @param handler - The handler to run when the interaction collector ends.
|
|
50
|
-
* @returns This instance of the modal builder.
|
|
51
|
-
*/
|
|
52
|
-
onError(handler: EventInterceptorErrorHandler): this;
|
|
53
|
-
/**
|
|
54
|
-
* Sets a filter for the interaction collector.
|
|
55
|
-
* @param predicate - The filter to use for the interaction collector.
|
|
56
|
-
* @returns This instance of the modal builder.
|
|
57
|
-
*/
|
|
58
|
-
filter(predicate: SelectMenuKitPredicate<StringSelectMenuInteraction>): this;
|
|
59
|
-
private get customId();
|
|
60
|
-
/**
|
|
61
|
-
* Disposes of the interaction collector and cleans up resources.
|
|
62
|
-
*/
|
|
63
|
-
dispose(): this;
|
|
64
|
-
}
|
|
65
|
-
//#endregion
|
|
66
|
-
export { OnStringSelectMenuKitSubmit, StringSelectMenuKit, StringSelectMenuKitPredicate };
|
|
67
|
-
//# sourceMappingURL=StringSelectMenuKit-Bhs8U6WI.d.ts.map
|