commandkit 1.2.0-dev.20260228121941 → 1.2.0-dev.20260301122036
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-CT-uyxW0.d.ts → ActionRow-Bt9qi0Mb.d.ts} +2 -2
- package/dist/{Button-oMnlpF6W.d.ts → Button-DxJLcZIU.d.ts} +5 -5
- package/dist/{ButtonKit-DKu0VAe4.d.ts → ButtonKit-BfcyvWfj.d.ts} +35 -35
- package/dist/{ChannelSelectMenuKit-HQZ4hH5s.d.ts → ChannelSelectMenuKit-DYkudikb.d.ts} +33 -33
- package/dist/{CommandsRouter-C7dZEepB.d.ts → CommandsRouter-DiNoF0dq.d.ts} +48 -48
- package/dist/{EventInterceptor-CZmWpS08.d.ts → EventInterceptor-D9JKMcfi.d.ts} +39 -39
- package/dist/{EventsRouter-DZ37r54v.d.ts → EventsRouter-EuuSu6NH.d.ts} +34 -34
- package/dist/{MentionableSelectMenuKit-7URDUM3-.d.ts → MentionableSelectMenuKit-Mu4xqP6B.d.ts} +33 -33
- package/dist/MessageCommandParser-DPCbHXCS.d.ts +194 -0
- package/dist/{Modal--iMEUqSm.d.ts → Modal-v9rrcMl-.d.ts} +7 -7
- package/dist/{ModalKit-BWXI3Z26.d.ts → ModalKit-XJSM65SV.d.ts} +32 -32
- package/dist/{RoleSelectMenuKit-BY-JJ18w.d.ts → RoleSelectMenuKit-CCjcp3HY.d.ts} +33 -33
- package/dist/{SelectMenu-DQbmOp1Y.d.ts → SelectMenu-CY0vvoSu.d.ts} +8 -8
- package/dist/{StringSelectMenuKit-lVhUMc3g.d.ts → StringSelectMenuKit-G5nBTicX.d.ts} +33 -33
- package/dist/{UserSelectMenuKit-CCj4Fpkr.d.ts → UserSelectMenuKit-D3SO_fXA.d.ts} +33 -33
- package/dist/analytics/analytics-engine.d.ts +1 -1
- package/dist/analytics/analytics-engine.js +2 -19
- package/dist/analytics/analytics-provider.d.ts +1 -1
- package/dist/analytics/analytics-provider.js +1 -0
- package/dist/analytics/constants.js +26 -3
- package/dist/analytics/constants.js.map +1 -0
- package/dist/analytics/utils.js +2 -19
- package/dist/{analytics-engine-_urJ5QTH.d.ts → analytics-engine-DnRsHBId.d.ts} +843 -843
- package/dist/app/commands/AppCommandRunner.d.ts +1 -1
- package/dist/app/commands/AppCommandRunner.js +2 -19
- package/dist/app/commands/Context.d.ts +1 -1
- package/dist/app/commands/Context.js +2 -19
- package/dist/app/commands/MessageCommandParser.d.ts +1 -1
- package/dist/app/commands/MessageCommandParser.js +261 -3
- package/dist/app/commands/MessageCommandParser.js.map +1 -0
- package/dist/app/commands/helpers.d.ts +1 -1
- package/dist/app/commands/helpers.js +25 -3
- package/dist/app/commands/helpers.js.map +1 -0
- package/dist/app/events/EventWorkerContext.d.ts +2 -2
- package/dist/app/events/EventWorkerContext.js +48 -5
- package/dist/app/events/EventWorkerContext.js.map +1 -0
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
- package/dist/app/handlers/AppCommandHandler.js +2 -19
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
- package/dist/app/handlers/AppEventsHandler.js +2 -19
- package/dist/app/index.d.ts +4 -4
- package/dist/app/index.js +13 -27
- package/dist/app/interrupt/signals.d.ts +1 -1
- package/dist/app/interrupt/signals.js +54 -6
- package/dist/app/interrupt/signals.js.map +1 -0
- package/dist/app/middlewares/permissions.d.ts +1 -1
- package/dist/app/middlewares/permissions.js +2 -19
- package/dist/app/register/CommandRegistrar.d.ts +1 -1
- package/dist/app/register/CommandRegistrar.js +2 -19
- package/dist/app/router/CommandsRouter.d.ts +1 -1
- package/dist/app/router/CommandsRouter.js +210 -2
- package/dist/app/router/CommandsRouter.js.map +1 -0
- package/dist/app/router/EventsRouter.d.ts +1 -1
- package/dist/app/router/EventsRouter.js +128 -2
- package/dist/app/router/EventsRouter.js.map +1 -0
- package/dist/app/router/index.d.ts +2 -2
- package/dist/app/router/index.js +5 -5
- package/dist/{chunk-kSYXY2_d.js → chunk-BE-pF4vm.js} +1 -1
- package/dist/cli/app-process.d.ts +2 -2
- package/dist/cli/app-process.js +6 -8
- package/dist/cli/app-process.js.map +1 -1
- package/dist/cli/build.d.ts +2 -2
- package/dist/cli/build.js +14 -29
- package/dist/cli/build.js.map +1 -1
- package/dist/cli/common.d.ts +5 -5
- package/dist/cli/common.js +182 -12
- package/dist/cli/common.js.map +1 -0
- package/dist/cli/development.d.ts +3 -3
- package/dist/cli/development.js +38 -54
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.js +73 -9
- package/dist/cli/env.js.map +1 -0
- package/dist/cli/generators.js +10 -10
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.js +9 -8
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.d.ts +2 -2
- package/dist/cli/init.js +14 -28
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/production.d.ts +2 -2
- package/dist/cli/production.js +11 -28
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +83 -6
- package/dist/cli/type-checker.js.map +1 -0
- package/dist/cli/utils.js +1 -0
- package/dist/cli/utils.js.map +1 -1
- package/dist/{commandkit-B1_NP74k.js → commandkit--k6yDJEr.js} +192 -192
- package/dist/{commandkit-B1_NP74k.js.map → commandkit--k6yDJEr.js.map} +1 -1
- package/dist/commandkit.d.ts +1 -1
- package/dist/commandkit.js +2 -19
- package/dist/{common-DnwCYit8.d.ts → common-CCvvgnxi.d.ts} +2 -2
- package/dist/components/common/EventInterceptor.d.ts +1 -1
- package/dist/components/common/EventInterceptor.js +137 -2
- package/dist/components/common/EventInterceptor.js.map +1 -0
- package/dist/components/common/element.d.ts +1 -1
- package/dist/components/common/element.js +2 -19
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/common/types.js +1 -0
- package/dist/components/display/common.js +2 -19
- package/dist/components/display/container.d.ts +1 -1
- package/dist/components/display/container.js +2 -19
- package/dist/components/display/file.d.ts +1 -1
- package/dist/components/display/file.js +23 -2
- package/dist/components/display/file.js.map +1 -0
- package/dist/components/display/index.d.ts +8 -8
- package/dist/components/display/index.js +12 -25
- package/dist/components/display/label.d.ts +1 -1
- package/dist/components/display/label.js +2 -19
- package/dist/components/display/media-gallery.d.ts +1 -1
- package/dist/components/display/media-gallery.js +2 -19
- package/dist/components/display/poll.d.ts +1 -1
- package/dist/components/display/poll.js +85 -4
- package/dist/{poll-ziQQQbMU.js.map → components/display/poll.js.map} +1 -1
- package/dist/components/display/section.d.ts +1 -1
- package/dist/components/display/section.js +2 -19
- package/dist/components/display/separator.d.ts +1 -1
- package/dist/components/display/separator.js +21 -2
- package/dist/components/display/separator.js.map +1 -0
- package/dist/components/display/text-display.d.ts +1 -1
- package/dist/components/display/text-display.js +26 -2
- package/dist/components/display/text-display.js.map +1 -0
- package/dist/components/index.d.ts +22 -22
- package/dist/components/index.js +14 -26
- package/dist/components/interactive/action-row/ActionRow.d.ts +1 -1
- package/dist/components/interactive/action-row/ActionRow.js +20 -2
- package/dist/{ActionRow-CSN_UKmM.js.map → components/interactive/action-row/ActionRow.js.map} +1 -1
- package/dist/components/interactive/button/Button.d.ts +1 -1
- package/dist/components/interactive/button/Button.js +2 -19
- package/dist/components/interactive/button/ButtonKit.d.ts +1 -1
- package/dist/components/interactive/button/ButtonKit.js +2 -19
- package/dist/components/interactive/modal/Modal.d.ts +1 -1
- package/dist/components/interactive/modal/Modal.js +2 -19
- package/dist/components/interactive/modal/ModalKit.d.ts +1 -1
- package/dist/components/interactive/modal/ModalKit.js +2 -19
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +2 -19
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +2 -19
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +2 -19
- package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -1
- package/dist/components/interactive/select-menu/SelectMenu.js +2 -19
- package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +2 -19
- package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +2 -19
- package/dist/components/interactive/select-menu/common.d.ts +1 -1
- package/dist/components/interactive/select-menu/common.js +1 -0
- package/dist/config/config.d.ts +1 -1
- package/dist/config/config.js +2 -19
- package/dist/config/default.d.ts +1 -1
- package/dist/config/default.js +2 -19
- package/dist/config/loader.d.ts +1 -1
- package/dist/config/loader.js +2 -19
- package/dist/config/types.d.ts +1 -1
- package/dist/config/types.js +1 -0
- package/dist/config/utils.d.ts +1 -1
- package/dist/config/utils.js +29 -2
- package/dist/config/utils.js.map +1 -0
- package/dist/{constants-EpKcj0dH.d.ts → constants-DqtJY0t-.d.ts} +2 -2
- package/dist/{constants-CuYW0K10.d.ts → constants-DwxpkIeH.d.ts} +7 -7
- package/dist/{container-DYcb7zGw.d.ts → container-CYojOA9d.d.ts} +1 -1
- package/dist/context/async-context.d.ts +1 -1
- package/dist/context/async-context.js +2 -19
- package/dist/context/environment.d.ts +1 -1
- package/dist/context/environment.js +2 -19
- package/dist/{element-DZeqbSTk.d.ts → element-DeLvTMfZ.d.ts} +3 -3
- package/dist/events/CommandKitEventsChannel.d.ts +1 -1
- package/dist/events/CommandKitEventsChannel.js +83 -2
- package/dist/events/CommandKitEventsChannel.js.map +1 -0
- package/dist/{file-CrV4lSnl.d.ts → file-DLO1zEcH.d.ts} +1 -1
- package/dist/flags/FlagProvider.d.ts +1 -1
- package/dist/flags/FlagProvider.js +1 -0
- package/dist/flags/FlagProvider.js.map +1 -1
- package/dist/flags/feature-flags.d.ts +1 -1
- package/dist/flags/feature-flags.js +2 -19
- package/dist/flags/store.d.ts +1 -1
- package/dist/flags/store.js +13 -2
- package/dist/flags/store.js.map +1 -0
- package/dist/{helpers-AQPLVY35.d.ts → helpers-zmC44Mcu.d.ts} +1 -1
- package/dist/index.d.ts +30 -30
- package/dist/index.js +61 -67
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/constants.js +22 -2
- package/dist/kv/constants.js.map +1 -0
- package/dist/kv/dotprops.js +1 -0
- package/dist/kv/dotprops.js.map +1 -1
- package/dist/kv/kv.d.ts +288 -288
- package/dist/kv/kv.js +2 -1
- package/dist/kv/kv.js.map +1 -1
- package/dist/kv/serde.d.ts +1 -1
- package/dist/kv/serde.js +29 -28
- package/dist/kv/serde.js.map +1 -1
- package/dist/{label-37kaNWMH.d.ts → label-DqGRqodo.d.ts} +3 -3
- package/dist/logger/DefaultLogger.d.ts +19 -19
- package/dist/logger/DefaultLogger.js +2 -19
- package/dist/logger/ILogger.d.ts +35 -35
- package/dist/logger/ILogger.js +1 -0
- package/dist/logger/Logger.d.ts +5 -5
- package/dist/logger/Logger.js +2 -19
- package/dist/logger/NoopLogger.d.ts +35 -35
- package/dist/logger/NoopLogger.js +1 -0
- package/dist/logger/NoopLogger.js.map +1 -1
- package/dist/{media-gallery-Ci3I4ElH.d.ts → media-gallery-Ca8es-eB.d.ts} +1 -1
- package/dist/plugins/CompilerPlugin.d.ts +1 -1
- package/dist/plugins/CompilerPlugin.js +33 -3
- package/dist/plugins/CompilerPlugin.js.map +1 -0
- package/dist/plugins/PluginCommon.d.ts +1 -1
- package/dist/plugins/PluginCommon.js +55 -4
- package/dist/plugins/PluginCommon.js.map +1 -0
- package/dist/plugins/RuntimePlugin.d.ts +1 -1
- package/dist/plugins/RuntimePlugin.js +124 -3
- package/dist/plugins/RuntimePlugin.js.map +1 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +8 -25
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +2 -19
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +2 -19
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +2 -19
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +2 -19
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/runtime.js +1 -0
- package/dist/plugins/types.d.ts +1 -1
- package/dist/plugins/types.js +1 -0
- package/dist/{poll-Ddtapd6n.d.ts → poll-DQ6DX_Tt.d.ts} +8 -8
- package/dist/{section-DkUKULnB.d.ts → section-Q8nwx_-q.d.ts} +1 -1
- package/dist/{separator-CbXsIFCa.d.ts → separator-B8P-kdIK.d.ts} +1 -1
- package/dist/{signals-BbTgTc0i.d.ts → signals-CBXwugBW.d.ts} +1 -1
- package/dist/{text-display-D7j39VC-.d.ts → text-display-CL9C2yMc.d.ts} +1 -1
- package/dist/{types-BywA9d2Z.d.ts → types-DZy7U-Ld.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -0
- package/dist/utils/colors.js +9 -3
- package/dist/utils/colors.js.map +1 -0
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +50 -8
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/utils/dev-hooks.js +2 -19
- package/dist/utils/error-codes.d.ts +10 -10
- package/dist/utils/error-codes.js +53 -5
- package/dist/utils/error-codes.js.map +1 -0
- package/dist/utils/resolve-file-url.js +18 -2
- package/dist/utils/resolve-file-url.js.map +1 -0
- package/dist/utils/types-package.js +61 -4
- package/dist/utils/types-package.js.map +1 -0
- package/dist/utils/useful-stuff/async-queue.d.ts +21 -21
- package/dist/utils/useful-stuff/async-queue.js +1 -0
- 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/mutex.js +1 -0
- package/dist/utils/useful-stuff/mutex.js.map +1 -1
- package/dist/utils/useful-stuff/ratelimiter.d.ts +56 -56
- package/dist/utils/useful-stuff/ratelimiter.js +1 -0
- 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 -0
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.d.ts +5 -5
- package/dist/utils/utilities.js +2 -19
- package/dist/utils/warning.js +38 -4
- package/dist/utils/warning.js.map +1 -0
- package/dist/version.js +13 -2
- package/dist/version.js.map +1 -0
- package/package.json +11 -14
- package/dist/ActionRow-CSN_UKmM.js +0 -25
- package/dist/CommandKitEventsChannel-DDI0UVh9.js +0 -88
- package/dist/CommandKitEventsChannel-DDI0UVh9.js.map +0 -1
- package/dist/CommandsRouter-D5mGRFEr.js +0 -215
- package/dist/CommandsRouter-D5mGRFEr.js.map +0 -1
- package/dist/CompilerPlugin-DZidFuHJ.js +0 -43
- package/dist/CompilerPlugin-DZidFuHJ.js.map +0 -1
- package/dist/EventInterceptor-CxA95XYA.js +0 -142
- package/dist/EventInterceptor-CxA95XYA.js.map +0 -1
- package/dist/EventWorkerContext-CfqamFWu.js +0 -68
- package/dist/EventWorkerContext-CfqamFWu.js.map +0 -1
- package/dist/EventsRouter-Be5NDOX4.js +0 -133
- package/dist/EventsRouter-Be5NDOX4.js.map +0 -1
- package/dist/ILogger-JI8VGyJf.js +0 -0
- package/dist/MessageCommandParser-VMFFGs0R.js +0 -271
- package/dist/MessageCommandParser-VMFFGs0R.js.map +0 -1
- package/dist/MessageCommandParser-q3dQcE5N.d.ts +0 -194
- package/dist/PluginCommon-Bfs8d9s7.js +0 -70
- package/dist/PluginCommon-Bfs8d9s7.js.map +0 -1
- package/dist/RuntimePlugin-BYQXQO8w.js +0 -134
- package/dist/RuntimePlugin-BYQXQO8w.js.map +0 -1
- package/dist/colors-Csc0X4QJ.js +0 -14
- package/dist/colors-Csc0X4QJ.js.map +0 -1
- package/dist/common-vGj3fpz3.js +0 -0
- package/dist/common-zQwj90Nz.js +0 -222
- package/dist/common-zQwj90Nz.js.map +0 -1
- package/dist/constants-BA0TJU6e.js +0 -36
- package/dist/constants-BA0TJU6e.js.map +0 -1
- package/dist/constants-BS9N2avz.js +0 -27
- package/dist/constants-BS9N2avz.js.map +0 -1
- package/dist/constants-CeIMhMD0.js +0 -85
- package/dist/constants-CeIMhMD0.js.map +0 -1
- package/dist/env-FxaiNasU.js +0 -113
- package/dist/env-FxaiNasU.js.map +0 -1
- package/dist/error-codes-Ds0bnPvT.js +0 -73
- package/dist/error-codes-Ds0bnPvT.js.map +0 -1
- package/dist/file-DqI3v90P.js +0 -28
- package/dist/file-DqI3v90P.js.map +0 -1
- package/dist/helpers-DSy7EjzP.js +0 -35
- package/dist/helpers-DSy7EjzP.js.map +0 -1
- package/dist/poll-ziQQQbMU.js +0 -100
- package/dist/resolve-file-url-BmjHzIKe.js +0 -23
- package/dist/resolve-file-url-BmjHzIKe.js.map +0 -1
- package/dist/router-CtcApqrw.js +0 -0
- package/dist/runtime-UJIpkNww.js +0 -0
- package/dist/separator-DGwA_b1J.js +0 -26
- package/dist/separator-DGwA_b1J.js.map +0 -1
- package/dist/signals-ewEPW2cO.js +0 -74
- package/dist/signals-ewEPW2cO.js.map +0 -1
- package/dist/store-DK4JA-fQ.js +0 -18
- package/dist/store-DK4JA-fQ.js.map +0 -1
- package/dist/text-display-BVuG7dT-.js +0 -31
- package/dist/text-display-BVuG7dT-.js.map +0 -1
- package/dist/type-checker-CFpKDDs8.js +0 -88
- package/dist/type-checker-CFpKDDs8.js.map +0 -1
- package/dist/types-Bx1EKe0v.js +0 -0
- package/dist/types-CAwOz52q.js +0 -0
- package/dist/types-package-Bjh_ap0V.js +0 -71
- package/dist/types-package-Bjh_ap0V.js.map +0 -1
- package/dist/utils-CVaVycsK.js +0 -34
- package/dist/utils-CVaVycsK.js.map +0 -1
- package/dist/version-rRfNG5vY.js +0 -18
- package/dist/version-rRfNG5vY.js.map +0 -1
- package/dist/warning-BWiQltHE.js +0 -53
- package/dist/warning-BWiQltHE.js.map +0 -1
- /package/dist/{index-BJfko-dP.d.ts → index-BIsCUWAs.d.ts} +0 -0
- /package/dist/{index-CCggO_hw.d.ts → index-CwHYpK-f.d.ts} +0 -0
- /package/dist/{index-CLjpoGi1.d.ts → index-DHrsNvX1.d.ts} +0 -0
package/dist/{MentionableSelectMenuKit-7URDUM3-.d.ts → MentionableSelectMenuKit-Mu4xqP6B.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
|
|
3
3
|
import { MentionableSelectMenuBuilder, MentionableSelectMenuInteraction } from "discord.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/interactive/select-menu/MentionableSelectMenuKit.d.ts
|
|
@@ -15,47 +15,47 @@ type MentionableSelectMenuKitPredicate = SelectMenuKitPredicate<MentionableSelec
|
|
|
15
15
|
declare class MentionableSelectMenuKit extends MentionableSelectMenuBuilder {
|
|
16
16
|
#private;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
* Sets the handler to run when the modal is submitted.
|
|
19
|
+
* @param handler - The handler to run when the modal is submitted.
|
|
20
|
+
* @param data - The context data for the interaction collector.
|
|
21
|
+
* @returns This instance of the modal builder.
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const modal = new MentionableSelectMenuKit()
|
|
25
|
+
* .setTitle('My Modal')
|
|
26
|
+
* .setCustomId('my-modal')
|
|
27
|
+
* .filter((interaction) => interaction.Mentionable.id === '1234567890')
|
|
28
|
+
* .onSelect(async (interaction) => {
|
|
29
|
+
* await interaction.reply('You submitted the modal!');
|
|
30
|
+
* })
|
|
31
|
+
* .addComponents(actionRow1, actionRow2);
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
34
|
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<MentionableSelectMenuInteraction, MentionableSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
* Sets the handler to run when the interaction collector ends.
|
|
37
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
38
|
+
* @returns This instance of the modal builder.
|
|
39
|
+
*/
|
|
40
40
|
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
41
41
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
46
|
onError(handler: EventInterceptorErrorHandler): this;
|
|
47
47
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
* Sets a filter for the interaction collector.
|
|
49
|
+
* @param predicate - The filter to use for the interaction collector.
|
|
50
|
+
* @returns This instance of the modal builder.
|
|
51
|
+
*/
|
|
52
52
|
filter(predicate: SelectMenuKitPredicate<MentionableSelectMenuInteraction>): this;
|
|
53
53
|
private get customId();
|
|
54
54
|
/**
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
* Disposes of the mentionable select menu kit, cleaning up any resources used by the interaction collector.
|
|
56
|
+
*/
|
|
57
57
|
dispose(): this;
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
export { MentionableSelectMenuKitPredicate as n, OnMentionableSelectMenuKitSubmit as r, MentionableSelectMenuKit as t };
|
|
61
|
-
//# sourceMappingURL=MentionableSelectMenuKit-
|
|
61
|
+
//# sourceMappingURL=MentionableSelectMenuKit-Mu4xqP6B.d.ts.map
|
|
@@ -0,0 +1,194 @@
|
|
|
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
|
+
* Represents a parsed message command with its components.
|
|
7
|
+
*/
|
|
8
|
+
interface ParsedMessageCommand {
|
|
9
|
+
command: string;
|
|
10
|
+
options: {
|
|
11
|
+
name: string;
|
|
12
|
+
value: unknown;
|
|
13
|
+
}[];
|
|
14
|
+
subcommand?: string;
|
|
15
|
+
subcommandGroup?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Schema defining the types of options for a message command.
|
|
19
|
+
*/
|
|
20
|
+
type MessageCommandOptionsSchema = Record<string, ApplicationCommandOptionType>;
|
|
21
|
+
/**
|
|
22
|
+
* Parses message content into structured command data with options and subcommands.
|
|
23
|
+
*/
|
|
24
|
+
declare class MessageCommandParser {
|
|
25
|
+
#private;
|
|
26
|
+
message: Message;
|
|
27
|
+
private prefix;
|
|
28
|
+
private schema;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new message command parser.
|
|
31
|
+
* @param message - The Discord message to parse
|
|
32
|
+
* @param prefix - Array of valid command prefixes or a regular expression
|
|
33
|
+
* @param schema - Function that returns the options schema for a command
|
|
34
|
+
*/
|
|
35
|
+
constructor(message: Message, prefix: string[] | RegExp, schema: (command: string) => MessageCommandOptionsSchema);
|
|
36
|
+
/**
|
|
37
|
+
* Gets the parsed command arguments.
|
|
38
|
+
* @returns Array of command arguments
|
|
39
|
+
*/
|
|
40
|
+
getArgs(): string[];
|
|
41
|
+
/**
|
|
42
|
+
* Gets the message command options object for easy access to typed option values.
|
|
43
|
+
*/
|
|
44
|
+
get options(): MessageCommandOptions;
|
|
45
|
+
/**
|
|
46
|
+
* Gets a specific option value by name.
|
|
47
|
+
* @param name - The option name
|
|
48
|
+
* @returns The option value or undefined if not found
|
|
49
|
+
*/
|
|
50
|
+
getOption<T>(name: string): T | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the main command name.
|
|
53
|
+
* @returns The command name
|
|
54
|
+
*/
|
|
55
|
+
getCommand(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Gets the subcommand name if present.
|
|
58
|
+
* @returns The subcommand name or undefined
|
|
59
|
+
*/
|
|
60
|
+
getSubcommand(): string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Gets the subcommand group name if present.
|
|
63
|
+
* @returns The subcommand group name or undefined
|
|
64
|
+
*/
|
|
65
|
+
getSubcommandGroup(): string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the prefix used in the message.
|
|
68
|
+
* @returns The matched prefix or undefined
|
|
69
|
+
*/
|
|
70
|
+
getPrefix(): string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Gets the full command including subcommand group and subcommand.
|
|
73
|
+
* @returns The complete command string
|
|
74
|
+
*/
|
|
75
|
+
getFullCommand(): string;
|
|
76
|
+
/**
|
|
77
|
+
* Parses the message content into structured command data.
|
|
78
|
+
* @returns The parsed command data
|
|
79
|
+
*/
|
|
80
|
+
parse(): ParsedMessageCommand;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Provides typed access to message command options with methods similar to Discord.js interaction options.
|
|
84
|
+
*/
|
|
85
|
+
declare class MessageCommandOptions {
|
|
86
|
+
private parser;
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new message command options instance.
|
|
89
|
+
* @param parser - The message command parser instance
|
|
90
|
+
*/
|
|
91
|
+
constructor(parser: MessageCommandParser);
|
|
92
|
+
/**
|
|
93
|
+
* @private
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
private assertOption;
|
|
97
|
+
/**
|
|
98
|
+
* Gets a guild member from the command options.
|
|
99
|
+
* @param name - The option name
|
|
100
|
+
* @param required - Whether the option is required
|
|
101
|
+
* @returns The guild member or null if not found
|
|
102
|
+
*/
|
|
103
|
+
getMember(name: string): GuildMember | null;
|
|
104
|
+
getMember(name: string, required: true): GuildMember;
|
|
105
|
+
/**
|
|
106
|
+
* Gets an attachment from the command options.
|
|
107
|
+
* @param name - The option name
|
|
108
|
+
* @param required - Whether the option is required
|
|
109
|
+
* @returns The attachment or null if not found
|
|
110
|
+
*/
|
|
111
|
+
getAttachment(name: string): Attachment | null;
|
|
112
|
+
getAttachment(name: string, required: true): Attachment;
|
|
113
|
+
/**
|
|
114
|
+
* Gets a boolean value from the command options.
|
|
115
|
+
* @param name - The option name
|
|
116
|
+
* @param required - Whether the option is required
|
|
117
|
+
* @returns The boolean value or null if not found
|
|
118
|
+
*/
|
|
119
|
+
getBoolean(name: string): boolean | null;
|
|
120
|
+
getBoolean(name: string, required: true): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Gets a number value from the command options.
|
|
123
|
+
* @param name - The option name
|
|
124
|
+
* @param required - Whether the option is required
|
|
125
|
+
* @returns The number value or null if not found
|
|
126
|
+
*/
|
|
127
|
+
getNumber(name: string): number | null;
|
|
128
|
+
getNumber(name: string, required: true): number;
|
|
129
|
+
/**
|
|
130
|
+
* Gets a string value from the command options.
|
|
131
|
+
* @param name - The option name
|
|
132
|
+
* @param required - Whether the option is required
|
|
133
|
+
* @returns The string value or null if not found
|
|
134
|
+
*/
|
|
135
|
+
getString(name: string): string | null;
|
|
136
|
+
getString(name: string, required: true): string;
|
|
137
|
+
/**
|
|
138
|
+
* Gets an integer value from the command options.
|
|
139
|
+
* @param name - The option name
|
|
140
|
+
* @param required - Whether the option is required
|
|
141
|
+
* @returns The integer value or null if not found
|
|
142
|
+
*/
|
|
143
|
+
getInteger(name: string): number | null;
|
|
144
|
+
getInteger(name: string, required: true): number;
|
|
145
|
+
/**
|
|
146
|
+
* Gets a user from the command options.
|
|
147
|
+
* @param name - The option name
|
|
148
|
+
* @param required - Whether the option is required
|
|
149
|
+
* @returns The user or null if not found
|
|
150
|
+
*/
|
|
151
|
+
getUser(name: string): User | null;
|
|
152
|
+
getUser(name: string, required: true): User;
|
|
153
|
+
/**
|
|
154
|
+
* Gets a channel from the command options.
|
|
155
|
+
* @param name - The option name
|
|
156
|
+
* @param required - Whether the option is required
|
|
157
|
+
* @returns The channel or null if not found
|
|
158
|
+
*/
|
|
159
|
+
getChannel(name: string): Channel | null;
|
|
160
|
+
getChannel(name: string, required: true): Channel;
|
|
161
|
+
/**
|
|
162
|
+
* Gets a role from the command options.
|
|
163
|
+
* @param name - The option name
|
|
164
|
+
* @param required - Whether the option is required
|
|
165
|
+
* @returns The role or null if not found
|
|
166
|
+
*/
|
|
167
|
+
getRole(name: string): Role | null;
|
|
168
|
+
getRole(name: string, required: true): Role;
|
|
169
|
+
/**
|
|
170
|
+
* Gets a mentionable (user, member, or role) from the command options.
|
|
171
|
+
* @param name - The option name
|
|
172
|
+
* @param required - Whether the option is required
|
|
173
|
+
* @returns The mentionable or null if not found
|
|
174
|
+
*/
|
|
175
|
+
getMentionable(name: string): NonNullable<CommandInteractionOption['member' | 'role' | 'user']> | null;
|
|
176
|
+
getMentionable(name: string, required: true): NonNullable<CommandInteractionOption['member' | 'role' | 'user']>;
|
|
177
|
+
/**
|
|
178
|
+
* Gets the subcommand name from the command.
|
|
179
|
+
* @param required - Whether the subcommand is required
|
|
180
|
+
* @returns The subcommand name or null if not found
|
|
181
|
+
*/
|
|
182
|
+
getSubcommand(): string | null;
|
|
183
|
+
getSubcommand(required: true): string;
|
|
184
|
+
/**
|
|
185
|
+
* Gets the subcommand group name from the command.
|
|
186
|
+
* @param required - Whether the subcommand group is required
|
|
187
|
+
* @returns The subcommand group name or null if not found
|
|
188
|
+
*/
|
|
189
|
+
getSubcommandGroup(): string | null;
|
|
190
|
+
getSubcommandGroup(required: true): string;
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
export { ParsedMessageCommand as i, MessageCommandOptionsSchema as n, MessageCommandParser as r, MessageCommandOptions as t };
|
|
194
|
+
//# sourceMappingURL=MessageCommandParser-DPCbHXCS.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { i as ModalKit, n as CommandKitModalBuilderInteractionCollectorDispatchContextData, o as OnModalKitEnd, s as OnModalKitSubmit } from "./ModalKit-
|
|
3
|
-
import { n as CommandKitElement } from "./element-
|
|
4
|
-
import { t as MaybeArray } from "./types-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
|
|
2
|
+
import { i as ModalKit, n as CommandKitModalBuilderInteractionCollectorDispatchContextData, o as OnModalKitEnd, s as OnModalKitSubmit } from "./ModalKit-XJSM65SV.js";
|
|
3
|
+
import { n as CommandKitElement } from "./element-DeLvTMfZ.js";
|
|
4
|
+
import { t as MaybeArray } from "./types-DZy7U-Ld.js";
|
|
5
5
|
import { FileUploadBuilder, FileUploadComponentData, TextInputStyle } from "discord.js";
|
|
6
6
|
|
|
7
7
|
//#region src/components/interactive/modal/Modal.d.ts
|
|
@@ -27,8 +27,8 @@ declare function Modal(props: ModalProps): CommandKitElement<'modal'>;
|
|
|
27
27
|
interface TextInputProps {
|
|
28
28
|
customId: string;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* @deprecated use the `<Label />` component instead.
|
|
31
|
+
*/
|
|
32
32
|
label?: string;
|
|
33
33
|
placeholder?: string;
|
|
34
34
|
maxLength?: number;
|
|
@@ -72,4 +72,4 @@ interface FileUploadProps extends Omit<FileUploadComponentData, 'type' | 'requir
|
|
|
72
72
|
declare function FileUpload(props: FileUploadProps): FileUploadBuilder;
|
|
73
73
|
//#endregion
|
|
74
74
|
export { ParagraphInput as a, TextInputProps as c, ModalProps as i, FileUploadProps as n, ShortInput as o, Modal as r, TextInput as s, FileUpload as t };
|
|
75
|
-
//# sourceMappingURL=Modal
|
|
75
|
+
//# sourceMappingURL=Modal-v9rrcMl-.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
1
|
+
import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
|
|
2
2
|
import { Awaitable, Events, ModalBuilder, ModalSubmitInteraction } from "discord.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/interactive/modal/ModalKit.d.ts
|
|
@@ -40,47 +40,47 @@ type CommandKitModalBuilderInteractionCollectorDispatchContextData = EventInterc
|
|
|
40
40
|
declare class ModalKit extends ModalBuilder {
|
|
41
41
|
#private;
|
|
42
42
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
* Sets the handler to run when the modal is submitted.
|
|
44
|
+
* @param handler - The handler to run when the modal is submitted.
|
|
45
|
+
* @param data - The context data for the interaction collector.
|
|
46
|
+
* @returns This instance of the modal builder.
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const modal = new ModalKit()
|
|
50
|
+
* .setTitle('My Modal')
|
|
51
|
+
* .setCustomId('my-modal')
|
|
52
|
+
* .filter((interaction) => interaction.user.id === '1234567890')
|
|
53
|
+
* .onSubmit(async (interaction) => {
|
|
54
|
+
* await interaction.reply('You submitted the modal!');
|
|
55
|
+
* })
|
|
56
|
+
* .addComponents(actionRow1, actionRow2);
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
59
|
onSubmit(handler: CommandKitModalBuilderInteractionCollectorDispatch, data?: CommandKitModalBuilderInteractionCollectorDispatchContextData): this;
|
|
60
60
|
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
* Sets the handler to run when the interaction collector ends.
|
|
62
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
63
|
+
* @returns This instance of the modal builder.
|
|
64
|
+
*/
|
|
65
65
|
onEnd(handler: CommandKitModalBuilderOnEnd): this;
|
|
66
66
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
* Sets the handler to run when the interaction collector ends.
|
|
68
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
69
|
+
* @returns This instance of the modal builder.
|
|
70
|
+
*/
|
|
71
71
|
onError(handler: EventInterceptorErrorHandler): this;
|
|
72
72
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
* Sets a filter for the interaction collector.
|
|
74
|
+
* @param predicate - The filter to use for the interaction collector.
|
|
75
|
+
* @returns This instance of the modal builder.
|
|
76
|
+
*/
|
|
77
77
|
filter(predicate: ModalKitPredicate): this;
|
|
78
78
|
private get customId();
|
|
79
79
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
* Disposes of the modal collector and cleans up resources.
|
|
81
|
+
*/
|
|
82
82
|
dispose(): this;
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
export { ModalKitPredicate as a, ModalKit as i, CommandKitModalBuilderInteractionCollectorDispatchContextData as n, OnModalKitEnd as o, CommandKitModalBuilderOnEnd as r, OnModalKitSubmit as s, CommandKitModalBuilderInteractionCollectorDispatch as t };
|
|
86
|
-
//# sourceMappingURL=ModalKit-
|
|
86
|
+
//# sourceMappingURL=ModalKit-XJSM65SV.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
|
|
3
3
|
import { RoleSelectMenuBuilder, RoleSelectMenuInteraction } from "discord.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/interactive/select-menu/RoleSelectMenuKit.d.ts
|
|
@@ -20,47 +20,47 @@ type RoleSelectMenuKitPredicate = SelectMenuKitPredicate<RoleSelectMenuInteracti
|
|
|
20
20
|
declare class RoleSelectMenuKit extends RoleSelectMenuBuilder {
|
|
21
21
|
#private;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
* Sets the handler to run when the modal is submitted.
|
|
24
|
+
* @param handler - The handler to run when the modal is submitted.
|
|
25
|
+
* @param data - The context data for the interaction collector.
|
|
26
|
+
* @returns This instance of the modal builder.
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const modal = new RoleSelectMenuKit()
|
|
30
|
+
* .setTitle('My Modal')
|
|
31
|
+
* .setCustomId('my-modal')
|
|
32
|
+
* .filter((interaction) => interaction.Role.id === '1234567890')
|
|
33
|
+
* .onSelect(async (interaction) => {
|
|
34
|
+
* await interaction.reply('You submitted the modal!');
|
|
35
|
+
* })
|
|
36
|
+
* .addComponents(actionRow1, actionRow2);
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
39
|
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<RoleSelectMenuInteraction, RoleSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
* Sets the handler to run when the interaction collector ends.
|
|
42
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
43
|
+
* @returns This instance of the modal builder.
|
|
44
|
+
*/
|
|
45
45
|
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
* Sets the handler to run when the interaction collector ends.
|
|
48
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
49
|
+
* @returns This instance of the modal builder.
|
|
50
|
+
*/
|
|
51
51
|
onError(handler: EventInterceptorErrorHandler): this;
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
* Sets a filter for the interaction collector.
|
|
54
|
+
* @param predicate - The filter to use for the interaction collector.
|
|
55
|
+
* @returns This instance of the modal builder.
|
|
56
|
+
*/
|
|
57
57
|
filter(predicate: SelectMenuKitPredicate<RoleSelectMenuInteraction>): this;
|
|
58
58
|
private get customId();
|
|
59
59
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
* Disposes of the role select menu kit, cleaning up any resources and event listeners.
|
|
61
|
+
*/
|
|
62
62
|
dispose(): this;
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
export { RoleSelectMenuKit as n, RoleSelectMenuKitPredicate as r, OnRoleSelectMenuKitSubmit as t };
|
|
66
|
-
//# sourceMappingURL=RoleSelectMenuKit-
|
|
66
|
+
//# sourceMappingURL=RoleSelectMenuKit-CCjcp3HY.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as MaybeArray } from "./types-
|
|
2
|
-
import { n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
3
|
-
import { n as StringSelectMenuKit } from "./StringSelectMenuKit-
|
|
4
|
-
import { t as ChannelSelectMenuKit } from "./ChannelSelectMenuKit-
|
|
5
|
-
import { t as MentionableSelectMenuKit } from "./MentionableSelectMenuKit-
|
|
6
|
-
import { n as UserSelectMenuKit } from "./UserSelectMenuKit-
|
|
7
|
-
import { n as RoleSelectMenuKit } from "./RoleSelectMenuKit-
|
|
1
|
+
import { t as MaybeArray } from "./types-DZy7U-Ld.js";
|
|
2
|
+
import { n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
|
|
3
|
+
import { n as StringSelectMenuKit } from "./StringSelectMenuKit-G5nBTicX.js";
|
|
4
|
+
import { t as ChannelSelectMenuKit } from "./ChannelSelectMenuKit-DYkudikb.js";
|
|
5
|
+
import { t as MentionableSelectMenuKit } from "./MentionableSelectMenuKit-Mu4xqP6B.js";
|
|
6
|
+
import { n as UserSelectMenuKit } from "./UserSelectMenuKit-D3SO_fXA.js";
|
|
7
|
+
import { n as RoleSelectMenuKit } from "./RoleSelectMenuKit-CCjcp3HY.js";
|
|
8
8
|
import { APISelectMenuOption, BaseSelectMenuComponentData, ChannelSelectMenuComponentData, ChannelSelectMenuInteraction, MentionableSelectMenuComponentData, MentionableSelectMenuInteraction, RoleSelectMenuComponentData, RoleSelectMenuInteraction, SelectMenuComponentOptionData, Snowflake, StringSelectMenuInteraction, StringSelectMenuOptionBuilder, UserSelectMenuComponentData, UserSelectMenuInteraction } from "discord.js";
|
|
9
9
|
|
|
10
10
|
//#region src/components/interactive/select-menu/SelectMenu.d.ts
|
|
@@ -137,4 +137,4 @@ interface ChannelSelectMenuProps extends Partial<Omit<ChannelSelectMenuComponent
|
|
|
137
137
|
declare function ChannelSelectMenu(props: ChannelSelectMenuProps): ChannelSelectMenuKit;
|
|
138
138
|
//#endregion
|
|
139
139
|
export { MentionableSelectMenu as a, RoleSelectMenu as c, StringSelectMenu as d, StringSelectMenuOption as f, UserSelectMenuProps as g, UserSelectMenu as h, CommonSelectMenuProps as i, RoleSelectMenuProps as l, StringSelectMenuProps as m, ChannelSelectMenuProps as n, MentionableSelectMenuProps as o, StringSelectMenuOptionProps as p, CommonBuilderKit as r, ResolveBuilderInteraction as s, ChannelSelectMenu as t, SelectMenuProps as u };
|
|
140
|
-
//# sourceMappingURL=SelectMenu-
|
|
140
|
+
//# sourceMappingURL=SelectMenu-CY0vvoSu.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-
|
|
2
|
-
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-
|
|
1
|
+
import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
|
|
2
|
+
import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
|
|
3
3
|
import { StringSelectMenuBuilder, StringSelectMenuInteraction } from "discord.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/interactive/select-menu/StringSelectMenuKit.d.ts
|
|
@@ -20,47 +20,47 @@ type StringSelectMenuKitPredicate = SelectMenuKitPredicate<StringSelectMenuInter
|
|
|
20
20
|
declare class StringSelectMenuKit extends StringSelectMenuBuilder {
|
|
21
21
|
#private;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
* Sets the handler to run when the modal is submitted.
|
|
24
|
+
* @param handler - The handler to run when the modal is submitted.
|
|
25
|
+
* @param data - The context data for the interaction collector.
|
|
26
|
+
* @returns This instance of the modal builder.
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const modal = new StringSelectMenuKit()
|
|
30
|
+
* .setTitle('My Modal')
|
|
31
|
+
* .setCustomId('my-modal')
|
|
32
|
+
* .filter((interaction) => interaction.user.id === '1234567890')
|
|
33
|
+
* .onSelect(async (interaction) => {
|
|
34
|
+
* await interaction.reply('You submitted the modal!');
|
|
35
|
+
* })
|
|
36
|
+
* .addComponents(actionRow1, actionRow2);
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
39
|
onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<StringSelectMenuInteraction, StringSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
* Sets the handler to run when the interaction collector ends.
|
|
42
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
43
|
+
* @returns This instance of the modal builder.
|
|
44
|
+
*/
|
|
45
45
|
onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
* Sets the handler to run when the interaction collector ends.
|
|
48
|
+
* @param handler - The handler to run when the interaction collector ends.
|
|
49
|
+
* @returns This instance of the modal builder.
|
|
50
|
+
*/
|
|
51
51
|
onError(handler: EventInterceptorErrorHandler): this;
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
* Sets a filter for the interaction collector.
|
|
54
|
+
* @param predicate - The filter to use for the interaction collector.
|
|
55
|
+
* @returns This instance of the modal builder.
|
|
56
|
+
*/
|
|
57
57
|
filter(predicate: SelectMenuKitPredicate<StringSelectMenuInteraction>): this;
|
|
58
58
|
private get customId();
|
|
59
59
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
* Disposes of the interaction collector and cleans up resources.
|
|
61
|
+
*/
|
|
62
62
|
dispose(): this;
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
export { StringSelectMenuKit as n, StringSelectMenuKitPredicate as r, OnStringSelectMenuKitSubmit as t };
|
|
66
|
-
//# sourceMappingURL=StringSelectMenuKit-
|
|
66
|
+
//# sourceMappingURL=StringSelectMenuKit-G5nBTicX.d.ts.map
|