commandkit 1.2.0-rc.9 → 1.2.1

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.
Files changed (421) hide show
  1. package/LICENSE +19 -3
  2. package/README.md +45 -26
  3. package/bin/index.mjs +1 -1
  4. package/cli.d.ts +19 -0
  5. package/config.cjs +3 -0
  6. package/config.d.ts +1 -0
  7. package/dist/{ActionRow-DKnFVDME.d.ts → ActionRow-Bt9qi0Mb.d.ts} +4 -5
  8. package/dist/{Button-4ZUXdA56.d.ts → Button-DxJLcZIU.d.ts} +7 -8
  9. package/dist/{ButtonKit-C7r7RPNf.d.ts → ButtonKit-BfcyvWfj.d.ts} +4 -5
  10. package/dist/{ChannelSelectMenuKit-BrXvBYNH.d.ts → ChannelSelectMenuKit-DYkudikb.d.ts} +5 -6
  11. package/dist/{CommandsRouter-CoOA7hkf.d.ts → CommandsRouter-DiNoF0dq.d.ts} +2 -3
  12. package/dist/{EventInterceptor-x-R2qshQ.d.ts → EventInterceptor-D9JKMcfi.d.ts} +2 -2
  13. package/dist/{EventsRouter-BacqK6z3.d.ts → EventsRouter-EuuSu6NH.d.ts} +2 -2
  14. package/dist/{MentionableSelectMenuKit-CPTKqx-O.d.ts → MentionableSelectMenuKit-Mu4xqP6B.d.ts} +5 -6
  15. package/dist/{MessageCommandParser-ROLibZPX.d.ts → MessageCommandParser-DPCbHXCS.d.ts} +4 -5
  16. package/dist/{Modal-C6UTRdYQ.d.ts → Modal-v9rrcMl-.d.ts} +25 -12
  17. package/dist/{ModalKit-Btz58KYn.d.ts → ModalKit-XJSM65SV.d.ts} +4 -5
  18. package/dist/{RoleSelectMenuKit-C26lU3sN.d.ts → RoleSelectMenuKit-CCjcp3HY.d.ts} +5 -6
  19. package/dist/{SelectMenu-Diy87_ba.d.ts → SelectMenu-CY0vvoSu.d.ts} +17 -14
  20. package/dist/{StringSelectMenuKit-Bhs8U6WI.d.ts → StringSelectMenuKit-G5nBTicX.d.ts} +5 -6
  21. package/dist/{UserSelectMenuKit-CfqFJdxz.d.ts → UserSelectMenuKit-D3SO_fXA.d.ts} +5 -6
  22. package/dist/analytics/analytics-engine.d.ts +1 -31
  23. package/dist/analytics/analytics-engine.js +2 -36
  24. package/dist/analytics/analytics-provider.d.ts +1 -31
  25. package/dist/analytics/analytics-provider.js +1 -0
  26. package/dist/analytics/constants.js +26 -3
  27. package/dist/analytics/constants.js.map +1 -0
  28. package/dist/analytics/utils.js +2 -36
  29. package/dist/{analytics-engine-B7JNRnEN.d.ts → analytics-engine-DnRsHBId.d.ts} +48 -34
  30. package/dist/app/commands/AppCommandRunner.d.ts +1 -31
  31. package/dist/app/commands/AppCommandRunner.js +2 -36
  32. package/dist/app/commands/Context.d.ts +1 -31
  33. package/dist/app/commands/Context.js +2 -36
  34. package/dist/app/commands/MessageCommandParser.d.ts +1 -1
  35. package/dist/app/commands/MessageCommandParser.js +261 -4
  36. package/dist/app/commands/MessageCommandParser.js.map +1 -0
  37. package/dist/app/commands/helpers.d.ts +1 -1
  38. package/dist/app/commands/helpers.js +25 -3
  39. package/dist/app/commands/helpers.js.map +1 -0
  40. package/dist/app/events/EventWorkerContext.d.ts +42 -33
  41. package/dist/app/events/EventWorkerContext.js +48 -5
  42. package/dist/app/events/EventWorkerContext.js.map +1 -0
  43. package/dist/app/handlers/AppCommandHandler.d.ts +1 -31
  44. package/dist/app/handlers/AppCommandHandler.js +2 -36
  45. package/dist/app/handlers/AppEventsHandler.d.ts +1 -31
  46. package/dist/app/handlers/AppEventsHandler.js +2 -36
  47. package/dist/app/index.d.ts +4 -31
  48. package/dist/app/index.js +13 -45
  49. package/dist/app/interrupt/signals.d.ts +1 -1
  50. package/dist/app/interrupt/signals.js +54 -7
  51. package/dist/app/interrupt/signals.js.map +1 -0
  52. package/dist/app/middlewares/permissions.d.ts +1 -31
  53. package/dist/app/middlewares/permissions.js +2 -36
  54. package/dist/app/register/CommandRegistrar.d.ts +1 -31
  55. package/dist/app/register/CommandRegistrar.js +2 -36
  56. package/dist/app/router/CommandsRouter.d.ts +1 -1
  57. package/dist/app/router/CommandsRouter.js +210 -2
  58. package/dist/app/router/CommandsRouter.js.map +1 -0
  59. package/dist/app/router/EventsRouter.d.ts +1 -1
  60. package/dist/app/router/EventsRouter.js +128 -2
  61. package/dist/app/router/EventsRouter.js.map +1 -0
  62. package/dist/app/router/index.d.ts +2 -3
  63. package/dist/app/router/index.js +5 -5
  64. package/dist/{chunk-nOFOJqeH.js → chunk-BE-pF4vm.js} +11 -7
  65. package/dist/cli/app-process.d.ts +2 -3
  66. package/dist/cli/app-process.js +60 -7
  67. package/dist/cli/app-process.js.map +1 -0
  68. package/dist/cli/build.d.ts +2 -31
  69. package/dist/cli/build.js +171 -41
  70. package/dist/cli/build.js.map +1 -0
  71. package/dist/cli/common.d.ts +10 -34
  72. package/dist/cli/common.js +182 -11
  73. package/dist/cli/common.js.map +1 -0
  74. package/dist/cli/development.d.ts +18 -1
  75. package/dist/cli/development.js +52 -78
  76. package/dist/cli/development.js.map +1 -1
  77. package/dist/cli/env.d.ts +4 -0
  78. package/dist/cli/env.js +73 -9
  79. package/dist/cli/env.js.map +1 -0
  80. package/dist/cli/generators.js +10 -13
  81. package/dist/cli/generators.js.map +1 -1
  82. package/dist/cli/information.js +11 -10
  83. package/dist/cli/information.js.map +1 -1
  84. package/dist/cli/init.d.ts +12 -2
  85. package/dist/cli/init.js +83 -38
  86. package/dist/cli/init.js.map +1 -0
  87. package/dist/cli/production.d.ts +2 -3
  88. package/dist/cli/production.js +19 -52
  89. package/dist/cli/production.js.map +1 -1
  90. package/dist/cli/type-checker.js +83 -6
  91. package/dist/cli/type-checker.js.map +1 -0
  92. package/dist/cli/utils.d.ts +0 -1
  93. package/dist/cli/utils.js +18 -2
  94. package/dist/cli/utils.js.map +1 -0
  95. package/dist/{commandkit-Bm0gLN8i.js → commandkit-Bh7C1_c7.js} +3219 -2616
  96. package/dist/commandkit-Bh7C1_c7.js.map +1 -0
  97. package/dist/commandkit.d.ts +1 -31
  98. package/dist/commandkit.js +2 -36
  99. package/dist/{common-DOCvOVC4.d.ts → common-CCvvgnxi.d.ts} +4 -5
  100. package/dist/components/common/EventInterceptor.d.ts +1 -1
  101. package/dist/components/common/EventInterceptor.js +137 -2
  102. package/dist/components/common/EventInterceptor.js.map +1 -0
  103. package/dist/components/common/element.d.ts +2 -5
  104. package/dist/components/common/element.js +10 -8
  105. package/dist/components/common/types.d.ts +1 -1
  106. package/dist/components/common/types.js +1 -1
  107. package/dist/components/{v2 → display}/common.d.ts +1 -2
  108. package/dist/components/display/common.js +4 -0
  109. package/dist/components/display/container.d.ts +2 -0
  110. package/dist/components/display/container.js +4 -0
  111. package/dist/components/display/file.d.ts +2 -0
  112. package/dist/{file-DVOELoNv.js → components/display/file.js} +5 -10
  113. package/dist/components/display/file.js.map +1 -0
  114. package/dist/components/display/index.d.ts +9 -0
  115. package/dist/components/display/index.js +19 -0
  116. package/dist/components/display/label.d.ts +2 -0
  117. package/dist/components/display/label.js +4 -0
  118. package/dist/components/display/media-gallery.d.ts +2 -0
  119. package/dist/components/display/media-gallery.js +5 -0
  120. package/dist/components/display/poll.d.ts +2 -0
  121. package/dist/components/display/poll.js +86 -0
  122. package/dist/components/display/poll.js.map +1 -0
  123. package/dist/components/display/section.d.ts +2 -0
  124. package/dist/components/display/section.js +5 -0
  125. package/dist/components/display/separator.d.ts +2 -0
  126. package/dist/{separator-DL6QH5H1.js → components/display/separator.js} +5 -10
  127. package/dist/components/display/separator.js.map +1 -0
  128. package/dist/components/display/text-display.d.ts +2 -0
  129. package/dist/{text-display-DbMumig_.js → components/display/text-display.js} +5 -10
  130. package/dist/components/display/text-display.js.map +1 -0
  131. package/dist/components/index.d.ts +23 -24
  132. package/dist/components/index.js +29 -53
  133. package/dist/components/interactive/action-row/ActionRow.d.ts +2 -0
  134. package/dist/{ActionRow-CbdGFWMT.js → components/interactive/action-row/ActionRow.js} +5 -10
  135. package/dist/components/interactive/action-row/ActionRow.js.map +1 -0
  136. package/dist/components/interactive/button/Button.d.ts +2 -0
  137. package/dist/components/interactive/button/Button.js +4 -0
  138. package/dist/components/interactive/button/ButtonKit.d.ts +2 -0
  139. package/dist/components/interactive/button/ButtonKit.js +4 -0
  140. package/dist/components/interactive/modal/Modal.d.ts +2 -0
  141. package/dist/components/interactive/modal/Modal.js +8 -0
  142. package/dist/components/interactive/modal/ModalKit.d.ts +2 -0
  143. package/dist/components/interactive/modal/ModalKit.js +4 -0
  144. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +2 -0
  145. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +4 -0
  146. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +2 -0
  147. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +4 -0
  148. package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +2 -0
  149. package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +4 -0
  150. package/dist/components/interactive/select-menu/SelectMenu.d.ts +2 -0
  151. package/dist/components/interactive/select-menu/SelectMenu.js +9 -0
  152. package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +2 -0
  153. package/dist/components/interactive/select-menu/StringSelectMenuKit.js +4 -0
  154. package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +2 -0
  155. package/dist/components/interactive/select-menu/UserSelectMenuKit.js +4 -0
  156. package/dist/components/interactive/select-menu/common.d.ts +2 -0
  157. package/dist/components/interactive/select-menu/common.js +1 -0
  158. package/dist/config/config.d.ts +15 -33
  159. package/dist/config/config.js +2 -36
  160. package/dist/config/default.d.ts +1 -31
  161. package/dist/config/default.js +2 -36
  162. package/dist/config/loader.d.ts +1 -31
  163. package/dist/config/loader.js +2 -36
  164. package/dist/config/types.d.ts +1 -31
  165. package/dist/config/types.js +1 -0
  166. package/dist/config/utils.d.ts +1 -31
  167. package/dist/config/utils.js +29 -2
  168. package/dist/config/utils.js.map +1 -0
  169. package/dist/{constants-D8PMA9on.d.ts → constants-DqtJY0t-.d.ts} +3 -3
  170. package/dist/{constants-MKu-Q1jh.d.ts → constants-DwxpkIeH.d.ts} +8 -2
  171. package/dist/{container-DHBELeJ3.d.ts → container-CYojOA9d.d.ts} +3 -4
  172. package/dist/context/async-context.d.ts +1 -31
  173. package/dist/context/async-context.js +2 -36
  174. package/dist/context/environment.d.ts +1 -31
  175. package/dist/context/environment.js +2 -36
  176. package/dist/{element-CAXu1XtK.d.ts → element-DeLvTMfZ.d.ts} +5 -5
  177. package/dist/events/CommandKitEventsChannel.d.ts +1 -31
  178. package/dist/events/CommandKitEventsChannel.js +83 -2
  179. package/dist/events/CommandKitEventsChannel.js.map +1 -0
  180. package/dist/{file-DTrr-p09.d.ts → file-DLO1zEcH.d.ts} +3 -4
  181. package/dist/flags/FlagProvider.d.ts +1 -31
  182. package/dist/flags/FlagProvider.js +1 -0
  183. package/dist/flags/FlagProvider.js.map +1 -1
  184. package/dist/flags/feature-flags.d.ts +1 -31
  185. package/dist/flags/feature-flags.js +5 -40
  186. package/dist/flags/store.d.ts +1 -31
  187. package/dist/flags/store.js +13 -2
  188. package/dist/flags/store.js.map +1 -0
  189. package/dist/{helpers-Wg6P5fRQ.d.ts → helpers-zmC44Mcu.d.ts} +2 -3
  190. package/dist/index-BIsCUWAs.d.ts +1 -0
  191. package/dist/index-CwHYpK-f.d.ts +1 -0
  192. package/dist/index-DHrsNvX1.d.ts +1 -0
  193. package/dist/index.d.ts +41 -42
  194. package/dist/index.js +80 -98
  195. package/dist/kv/constants.d.ts +1 -1
  196. package/dist/kv/constants.js +22 -2
  197. package/dist/kv/constants.js.map +1 -0
  198. package/dist/kv/dotprops.js +26 -3
  199. package/dist/kv/dotprops.js.map +1 -0
  200. package/dist/kv/kv.d.ts +1 -2
  201. package/dist/kv/kv.js +15 -18
  202. package/dist/kv/kv.js.map +1 -1
  203. package/dist/kv/serde.d.ts +12 -3
  204. package/dist/kv/serde.js +87 -4
  205. package/dist/kv/serde.js.map +1 -0
  206. package/dist/label-DqGRqodo.d.ts +28 -0
  207. package/dist/logger/DefaultLogger.d.ts +66 -3
  208. package/dist/logger/DefaultLogger.js +2 -36
  209. package/dist/logger/ILogger.d.ts +64 -2
  210. package/dist/logger/ILogger.js +1 -1
  211. package/dist/logger/Logger.d.ts +36 -3
  212. package/dist/logger/Logger.js +2 -36
  213. package/dist/logger/NoopLogger.d.ts +1 -2
  214. package/dist/logger/NoopLogger.js +1 -0
  215. package/dist/logger/NoopLogger.js.map +1 -1
  216. package/dist/{media-gallery-BMsXSot3.d.ts → media-gallery-Ca8es-eB.d.ts} +3 -4
  217. package/dist/plugins/CompilerPlugin.d.ts +1 -31
  218. package/dist/plugins/CompilerPlugin.js +33 -4
  219. package/dist/plugins/CompilerPlugin.js.map +1 -0
  220. package/dist/plugins/PluginCommon.d.ts +1 -31
  221. package/dist/plugins/PluginCommon.js +55 -4
  222. package/dist/plugins/PluginCommon.js.map +1 -0
  223. package/dist/plugins/RuntimePlugin.d.ts +1 -31
  224. package/dist/plugins/RuntimePlugin.js +124 -4
  225. package/dist/plugins/RuntimePlugin.js.map +1 -0
  226. package/dist/plugins/index.d.ts +1 -31
  227. package/dist/plugins/index.js +8 -40
  228. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -31
  229. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +2 -36
  230. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -31
  231. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +2 -36
  232. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -31
  233. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +2 -36
  234. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -31
  235. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +2 -36
  236. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -31
  237. package/dist/plugins/plugin-runtime/runtime.js +1 -1
  238. package/dist/plugins/types.d.ts +1 -31
  239. package/dist/plugins/types.js +1 -1
  240. package/dist/poll-DQ6DX_Tt.d.ts +88 -0
  241. package/dist/{section-Dh_FhPeC.d.ts → section-Q8nwx_-q.d.ts} +3 -4
  242. package/dist/{separator-CMf6Cyy5.d.ts → separator-B8P-kdIK.d.ts} +3 -4
  243. package/dist/{signals-SHg7J1U_.d.ts → signals-CBXwugBW.d.ts} +2 -2
  244. package/dist/{text-display-DRw3r_lK.d.ts → text-display-CL9C2yMc.d.ts} +3 -4
  245. package/dist/{types-CJ-XvOFN.d.ts → types-DZy7U-Ld.d.ts} +2 -2
  246. package/dist/types.d.ts +2 -32
  247. package/dist/types.js +1 -0
  248. package/dist/utils/colors.js +9 -3
  249. package/dist/utils/colors.js.map +1 -0
  250. package/dist/utils/constants.d.ts +2 -2
  251. package/dist/utils/constants.js +50 -7
  252. package/dist/utils/constants.js.map +1 -0
  253. package/dist/utils/dev-hooks.d.ts +1 -31
  254. package/dist/utils/dev-hooks.js +2 -36
  255. package/dist/utils/error-codes.d.ts +54 -2
  256. package/dist/utils/error-codes.js +53 -5
  257. package/dist/utils/error-codes.js.map +1 -0
  258. package/dist/utils/resolve-file-url.d.ts +11 -2
  259. package/dist/utils/resolve-file-url.js +18 -2
  260. package/dist/utils/resolve-file-url.js.map +1 -0
  261. package/dist/utils/types-package.js +61 -4
  262. package/dist/utils/types-package.js.map +1 -0
  263. package/dist/utils/useful-stuff/async-queue.js +2 -2
  264. package/dist/utils/useful-stuff/async-queue.js.map +1 -1
  265. package/dist/utils/useful-stuff/mutex.js +1 -0
  266. package/dist/utils/useful-stuff/mutex.js.map +1 -1
  267. package/dist/utils/useful-stuff/ratelimiter.js +2 -2
  268. package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
  269. package/dist/utils/useful-stuff/semaphore.js +2 -3
  270. package/dist/utils/useful-stuff/semaphore.js.map +1 -1
  271. package/dist/utils/utilities.d.ts +113 -2
  272. package/dist/utils/utilities.js +5 -37
  273. package/dist/utils/{warn-unstable.d.ts → warning.d.ts} +12 -3
  274. package/dist/utils/{warn-unstable.js → warning.js} +15 -2
  275. package/dist/utils/warning.js.map +1 -0
  276. package/dist/version.d.ts +8 -2
  277. package/dist/version.js +13 -2
  278. package/dist/version.js.map +1 -0
  279. package/hooks.cjs +11 -4
  280. package/package.json +22 -18
  281. package/ratelimit.cjs +0 -1
  282. package/dist/ActionRow-CbdGFWMT.js.map +0 -1
  283. package/dist/CommandKitEventsChannel-BtRzr3Tz.js +0 -88
  284. package/dist/CommandKitEventsChannel-BtRzr3Tz.js.map +0 -1
  285. package/dist/CommandsRouter-Cgcy6cK9.js +0 -220
  286. package/dist/CommandsRouter-Cgcy6cK9.js.map +0 -1
  287. package/dist/CompilerPlugin-M8r3yNAl.js +0 -43
  288. package/dist/CompilerPlugin-M8r3yNAl.js.map +0 -1
  289. package/dist/DefaultLogger-XCOl5nLd.d.ts +0 -67
  290. package/dist/EventInterceptor-CQEXyUTp.js +0 -142
  291. package/dist/EventInterceptor-CQEXyUTp.js.map +0 -1
  292. package/dist/EventWorkerContext-BMk7IXpC.d.ts +0 -43
  293. package/dist/EventWorkerContext-Dq29tieI.js +0 -69
  294. package/dist/EventWorkerContext-Dq29tieI.js.map +0 -1
  295. package/dist/EventsRouter-3Gygh-km.js +0 -137
  296. package/dist/EventsRouter-3Gygh-km.js.map +0 -1
  297. package/dist/ILogger-BW8GM-YZ.d.ts +0 -64
  298. package/dist/ILogger-dQ7Y9X1f.js +0 -0
  299. package/dist/Logger-DyfkPk7u.d.ts +0 -37
  300. package/dist/MessageCommandParser-CEuO6Ex3.js +0 -269
  301. package/dist/MessageCommandParser-CEuO6Ex3.js.map +0 -1
  302. package/dist/PluginCommon-Cvl5yYM_.js +0 -71
  303. package/dist/PluginCommon-Cvl5yYM_.js.map +0 -1
  304. package/dist/RuntimePlugin-BUecuBIU.js +0 -134
  305. package/dist/RuntimePlugin-BUecuBIU.js.map +0 -1
  306. package/dist/app-HN1cVg8J.js +0 -0
  307. package/dist/app-process-DoG6Spkf.js +0 -68
  308. package/dist/app-process-DoG6Spkf.js.map +0 -1
  309. package/dist/build-C9ltqPmn.js +0 -175
  310. package/dist/build-C9ltqPmn.js.map +0 -1
  311. package/dist/colors-DL3ucTiT.js +0 -15
  312. package/dist/colors-DL3ucTiT.js.map +0 -1
  313. package/dist/commandkit-Bm0gLN8i.js.map +0 -1
  314. package/dist/common-CcfjYnPG.js +0 -0
  315. package/dist/common-Dxr9-XPa.js +0 -211
  316. package/dist/common-Dxr9-XPa.js.map +0 -1
  317. package/dist/common-vnMIelAE.js +0 -17
  318. package/dist/common-vnMIelAE.js.map +0 -1
  319. package/dist/components/v1/action-row/ActionRow.d.ts +0 -6
  320. package/dist/components/v1/action-row/ActionRow.js +0 -3
  321. package/dist/components/v1/button/Button.d.ts +0 -7
  322. package/dist/components/v1/button/Button.js +0 -38
  323. package/dist/components/v1/button/ButtonKit.d.ts +0 -3
  324. package/dist/components/v1/button/ButtonKit.js +0 -38
  325. package/dist/components/v1/modal/Modal.d.ts +0 -7
  326. package/dist/components/v1/modal/Modal.js +0 -41
  327. package/dist/components/v1/modal/ModalKit.d.ts +0 -3
  328. package/dist/components/v1/modal/ModalKit.js +0 -38
  329. package/dist/components/v1/select-menu/ChannelSelectMenuKit.d.ts +0 -4
  330. package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +0 -38
  331. package/dist/components/v1/select-menu/MentionableSelectMenuKit.d.ts +0 -4
  332. package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +0 -38
  333. package/dist/components/v1/select-menu/RoleSelectMenuKit.d.ts +0 -4
  334. package/dist/components/v1/select-menu/RoleSelectMenuKit.js +0 -38
  335. package/dist/components/v1/select-menu/SelectMenu.d.ts +0 -10
  336. package/dist/components/v1/select-menu/SelectMenu.js +0 -43
  337. package/dist/components/v1/select-menu/StringSelectMenuKit.d.ts +0 -4
  338. package/dist/components/v1/select-menu/StringSelectMenuKit.js +0 -38
  339. package/dist/components/v1/select-menu/UserSelectMenuKit.d.ts +0 -4
  340. package/dist/components/v1/select-menu/UserSelectMenuKit.js +0 -38
  341. package/dist/components/v1/select-menu/common.d.ts +0 -3
  342. package/dist/components/v1/select-menu/common.js +0 -1
  343. package/dist/components/v2/common.js +0 -3
  344. package/dist/components/v2/container.d.ts +0 -2
  345. package/dist/components/v2/container.js +0 -4
  346. package/dist/components/v2/file.d.ts +0 -2
  347. package/dist/components/v2/file.js +0 -3
  348. package/dist/components/v2/index.d.ts +0 -8
  349. package/dist/components/v2/index.js +0 -17
  350. package/dist/components/v2/media-gallery.d.ts +0 -2
  351. package/dist/components/v2/media-gallery.js +0 -5
  352. package/dist/components/v2/section.d.ts +0 -2
  353. package/dist/components/v2/section.js +0 -5
  354. package/dist/components/v2/separator.d.ts +0 -2
  355. package/dist/components/v2/separator.js +0 -3
  356. package/dist/components/v2/text-display.d.ts +0 -2
  357. package/dist/components/v2/text-display.js +0 -3
  358. package/dist/config-BhVxyjmZ.d.ts +0 -16
  359. package/dist/constants-4oxxvaJA.js +0 -27
  360. package/dist/constants-4oxxvaJA.js.map +0 -1
  361. package/dist/constants-B5_Ta7PR.js +0 -70
  362. package/dist/constants-B5_Ta7PR.js.map +0 -1
  363. package/dist/constants-BOOGN85p.js +0 -37
  364. package/dist/constants-BOOGN85p.js.map +0 -1
  365. package/dist/container-C6GtfAPW.js +0 -44
  366. package/dist/container-C6GtfAPW.js.map +0 -1
  367. package/dist/dotprops-tnhpnszJ.js +0 -36
  368. package/dist/dotprops-tnhpnszJ.js.map +0 -1
  369. package/dist/element-Bak9llw_.js +0 -84
  370. package/dist/element-Bak9llw_.js.map +0 -1
  371. package/dist/env-_68PRRoA.js +0 -109
  372. package/dist/env-_68PRRoA.js.map +0 -1
  373. package/dist/error-codes-B4TyW4Ct.d.ts +0 -54
  374. package/dist/error-codes-Ds0bnPvT.js +0 -73
  375. package/dist/error-codes-Ds0bnPvT.js.map +0 -1
  376. package/dist/feature-flags-nZJB7-e5.js +0 -160
  377. package/dist/feature-flags-nZJB7-e5.js.map +0 -1
  378. package/dist/file-DVOELoNv.js.map +0 -1
  379. package/dist/helpers-BSwwrKJW.js +0 -36
  380. package/dist/helpers-BSwwrKJW.js.map +0 -1
  381. package/dist/index-DKcmsWXw.d.ts +0 -1
  382. package/dist/index-DSBMRX9A.d.ts +0 -1
  383. package/dist/index-DdqikUQD.d.ts +0 -1
  384. package/dist/index.js.map +0 -1
  385. package/dist/init-Cy_bcUt4.js +0 -95
  386. package/dist/init-Cy_bcUt4.js.map +0 -1
  387. package/dist/init-DOr-Y3GQ.d.ts +0 -13
  388. package/dist/media-gallery-zDtJ3kxb.js +0 -62
  389. package/dist/media-gallery-zDtJ3kxb.js.map +0 -1
  390. package/dist/resolve-file-url-ChIyw-Vf.js +0 -23
  391. package/dist/resolve-file-url-ChIyw-Vf.js.map +0 -1
  392. package/dist/resolve-file-url-yO8bUxok.d.ts +0 -11
  393. package/dist/router-Dn35v30f.js +0 -0
  394. package/dist/runtime-DB9CiPfe.js +0 -0
  395. package/dist/section-DlvrDoJK.js +0 -60
  396. package/dist/section-DlvrDoJK.js.map +0 -1
  397. package/dist/separator-DL6QH5H1.js.map +0 -1
  398. package/dist/serde-BYaKrsOV.d.ts +0 -12
  399. package/dist/serde-Cc8iUa9J.js +0 -97
  400. package/dist/serde-Cc8iUa9J.js.map +0 -1
  401. package/dist/signals-ChFMD7mB.js +0 -74
  402. package/dist/signals-ChFMD7mB.js.map +0 -1
  403. package/dist/store-CM6pWVZh.js +0 -19
  404. package/dist/store-CM6pWVZh.js.map +0 -1
  405. package/dist/text-display-DbMumig_.js.map +0 -1
  406. package/dist/type-checker-DR7RZFs5.js +0 -90
  407. package/dist/type-checker-DR7RZFs5.js.map +0 -1
  408. package/dist/types-CUZOquUl.js +0 -0
  409. package/dist/types-package-BWArjyBF.js +0 -75
  410. package/dist/types-package-BWArjyBF.js.map +0 -1
  411. package/dist/types-q0Nm882H.js +0 -0
  412. package/dist/utilities-DtdPlr4c.d.ts +0 -87
  413. package/dist/utils/warn-unstable.js.map +0 -1
  414. package/dist/utils-DCSnVAZ6.js +0 -23
  415. package/dist/utils-DCSnVAZ6.js.map +0 -1
  416. package/dist/utils-KsNof0Xz.js +0 -34
  417. package/dist/utils-KsNof0Xz.js.map +0 -1
  418. package/dist/v2-DofkPKHs.js +0 -0
  419. package/dist/version-CtJtBJXI.d.ts +0 -8
  420. package/dist/version-DRSQMx0w.js +0 -18
  421. package/dist/version-DRSQMx0w.js.map +0 -1
@@ -1,38 +1,4 @@
1
- require('../colors-DL3ucTiT.js');
2
- require('../ActionRow-CbdGFWMT.js');
3
- require('../error-codes-Ds0bnPvT.js');
4
- const require_commandkit = require('../commandkit-Bm0gLN8i.js');
5
- require('../common-CcfjYnPG.js');
6
- require('../common-vnMIelAE.js');
7
- require('../container-C6GtfAPW.js');
8
- require('../file-DVOELoNv.js');
9
- require('../media-gallery-zDtJ3kxb.js');
10
- require('../section-DlvrDoJK.js');
11
- require('../separator-DL6QH5H1.js');
12
- require('../text-display-DbMumig_.js');
13
- require('../v2-DofkPKHs.js');
14
- require('../element-Bak9llw_.js');
15
- require('../types-CUZOquUl.js');
16
- require('../EventInterceptor-CQEXyUTp.js');
17
- require('../constants-B5_Ta7PR.js');
18
- require('../PluginCommon-Cvl5yYM_.js');
19
- require('../CompilerPlugin-M8r3yNAl.js');
20
- require('../RuntimePlugin-BUecuBIU.js');
21
- require('../types-q0Nm882H.js');
22
- require('../resolve-file-url-ChIyw-Vf.js');
23
- require('../runtime-DB9CiPfe.js');
24
- require('../utils-KsNof0Xz.js');
25
- require('../types-package-BWArjyBF.js');
26
- require('../constants-BOOGN85p.js');
27
- require('../EventWorkerContext-Dq29tieI.js');
28
- require('../signals-ChFMD7mB.js');
29
- require('../MessageCommandParser-CEuO6Ex3.js');
30
- require('../helpers-BSwwrKJW.js');
31
- require('../CommandsRouter-Cgcy6cK9.js');
32
- require('../EventsRouter-3Gygh-km.js');
33
- require('../router-Dn35v30f.js');
34
- require('../common-Dxr9-XPa.js');
35
- require('../CommandKitEventsChannel-BtRzr3Tz.js');
36
- require('../store-CM6pWVZh.js');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_commandkit = require('../commandkit-Bh7C1_c7.js');
37
3
 
38
4
  exports.AnalyticsEngine = require_commandkit.AnalyticsEngine;
@@ -1,32 +1,2 @@
1
- import { AnalyticsEvent, AnalyticsProvider, IdentifyEvent } from "../analytics-engine-B7JNRnEN.js";
2
- import "../EventInterceptor-x-R2qshQ.js";
3
- import "../ButtonKit-C7r7RPNf.js";
4
- import "../ModalKit-Btz58KYn.js";
5
- import "../element-CAXu1XtK.js";
6
- import "../ActionRow-DKnFVDME.js";
7
- import "../types-CJ-XvOFN.js";
8
- import "../Button-4ZUXdA56.js";
9
- import "../Modal-C6UTRdYQ.js";
10
- import "../common-DOCvOVC4.js";
11
- import "../StringSelectMenuKit-Bhs8U6WI.js";
12
- import "../ChannelSelectMenuKit-BrXvBYNH.js";
13
- import "../MentionableSelectMenuKit-CPTKqx-O.js";
14
- import "../UserSelectMenuKit-CfqFJdxz.js";
15
- import "../RoleSelectMenuKit-C26lU3sN.js";
16
- import "../SelectMenu-Diy87_ba.js";
17
- import "../container-DHBELeJ3.js";
18
- import "../file-DTrr-p09.js";
19
- import "../media-gallery-BMsXSot3.js";
20
- import "../section-Dh_FhPeC.js";
21
- import "../separator-CMf6Cyy5.js";
22
- import "../text-display-DRw3r_lK.js";
23
- import "../index-DSBMRX9A.js";
24
- import "../index-DdqikUQD.js";
25
- import "../MessageCommandParser-ROLibZPX.js";
26
- import "../signals-SHg7J1U_.js";
27
- import "../helpers-Wg6P5fRQ.js";
28
- import "../CommandsRouter-CoOA7hkf.js";
29
- import "../EventsRouter-BacqK6z3.js";
30
- import "../index-DKcmsWXw.js";
31
- import "../constants-MKu-Q1jh.js";
1
+ import { a as IdentifyEvent, i as AnalyticsProvider, r as AnalyticsEvent } from "../analytics-engine-DnRsHBId.js";
32
2
  export { AnalyticsEvent, AnalyticsProvider, IdentifyEvent };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -1,4 +1,27 @@
1
- const require_constants = require('../constants-BOOGN85p.js');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_chunk = require('../chunk-BE-pF4vm.js');
3
+ let node_crypto = require("node:crypto");
2
4
 
3
- exports.AnalyticsEvents = require_constants.AnalyticsEvents;
4
- exports.DO_NOT_TRACK_KEY = require_constants.DO_NOT_TRACK_KEY;
5
+ //#region src/analytics/constants.ts
6
+ /**
7
+ * @private
8
+ * @internal
9
+ */
10
+ const DO_NOT_TRACK_KEY = `COMMANDKIT_ANALYTICS__DO_NOT_TRACK::${(0, node_crypto.randomUUID)()}`;
11
+ /**
12
+ * The analytics events that are used in CommandKit.
13
+ * These events are used to track various actions and metrics within the CommandKit framework.
14
+ */
15
+ const AnalyticsEvents = {
16
+ COMMAND_EXECUTION: "command_execution",
17
+ FEATURE_FLAG_METRICS: "feature_flag_metrics",
18
+ FEATURE_FLAG_DECISION: "feature_flag_decision",
19
+ CACHE_HIT: "cache_hit",
20
+ CACHE_MISS: "cache_miss",
21
+ CACHE_REVALIDATED: "cache_revalidated"
22
+ };
23
+
24
+ //#endregion
25
+ exports.AnalyticsEvents = AnalyticsEvents;
26
+ exports.DO_NOT_TRACK_KEY = DO_NOT_TRACK_KEY;
27
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","names":[],"sources":["../../src/analytics/constants.ts"],"sourcesContent":["import { randomUUID } from 'node:crypto';\n\n/**\n * @private\n * @internal\n */\nexport const DO_NOT_TRACK_KEY = `COMMANDKIT_ANALYTICS__DO_NOT_TRACK::${randomUUID()}`;\n\n/**\n * The analytics events that are used in CommandKit.\n * These events are used to track various actions and metrics within the CommandKit framework.\n */\nexport const AnalyticsEvents = {\n // commands\n COMMAND_EXECUTION: 'command_execution',\n // feature flags\n FEATURE_FLAG_METRICS: 'feature_flag_metrics',\n FEATURE_FLAG_DECISION: 'feature_flag_decision',\n // @commandkit/cache\n CACHE_HIT: 'cache_hit',\n CACHE_MISS: 'cache_miss',\n CACHE_REVALIDATED: 'cache_revalidated',\n} as const;\n\n/**\n * The type of analytics events that can be tracked in CommandKit.\n * This type is derived from the keys of the `AnalyticsEvents` object.\n * It ensures that only valid analytics events can be used in the tracking functions.\n */\nexport type AnalyticsEvent =\n (typeof AnalyticsEvents)[keyof typeof AnalyticsEvents];\n"],"mappings":";;;;;;;;;AAMA,MAAa,mBAAmB,oEAAmD;;;;;AAMnF,MAAa,kBAAkB;CAE7B,mBAAmB;CAEnB,sBAAsB;CACtB,uBAAuB;CAEvB,WAAW;CACX,YAAY;CACZ,mBAAmB;CACpB"}
@@ -1,39 +1,5 @@
1
- require('../colors-DL3ucTiT.js');
2
- require('../ActionRow-CbdGFWMT.js');
3
- require('../error-codes-Ds0bnPvT.js');
4
- const require_commandkit = require('../commandkit-Bm0gLN8i.js');
5
- require('../common-CcfjYnPG.js');
6
- require('../common-vnMIelAE.js');
7
- require('../container-C6GtfAPW.js');
8
- require('../file-DVOELoNv.js');
9
- require('../media-gallery-zDtJ3kxb.js');
10
- require('../section-DlvrDoJK.js');
11
- require('../separator-DL6QH5H1.js');
12
- require('../text-display-DbMumig_.js');
13
- require('../v2-DofkPKHs.js');
14
- require('../element-Bak9llw_.js');
15
- require('../types-CUZOquUl.js');
16
- require('../EventInterceptor-CQEXyUTp.js');
17
- require('../constants-B5_Ta7PR.js');
18
- require('../PluginCommon-Cvl5yYM_.js');
19
- require('../CompilerPlugin-M8r3yNAl.js');
20
- require('../RuntimePlugin-BUecuBIU.js');
21
- require('../types-q0Nm882H.js');
22
- require('../resolve-file-url-ChIyw-Vf.js');
23
- require('../runtime-DB9CiPfe.js');
24
- require('../utils-KsNof0Xz.js');
25
- require('../types-package-BWArjyBF.js');
26
- require('../constants-BOOGN85p.js');
27
- require('../EventWorkerContext-Dq29tieI.js');
28
- require('../signals-ChFMD7mB.js');
29
- require('../MessageCommandParser-CEuO6Ex3.js');
30
- require('../helpers-BSwwrKJW.js');
31
- require('../CommandsRouter-Cgcy6cK9.js');
32
- require('../EventsRouter-3Gygh-km.js');
33
- require('../router-Dn35v30f.js');
34
- require('../common-Dxr9-XPa.js');
35
- require('../CommandKitEventsChannel-BtRzr3Tz.js');
36
- require('../store-CM6pWVZh.js');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_commandkit = require('../commandkit-Bh7C1_c7.js');
37
3
 
38
4
  exports.getDoNotTrack = require_commandkit.getDoNotTrack;
39
5
  exports.noAnalytics = require_commandkit.noAnalytics;
@@ -1,14 +1,14 @@
1
- import { EventInterceptor } from "./EventInterceptor-x-R2qshQ.js";
2
- import { Fragment, createElement } from "./element-CAXu1XtK.js";
3
- import { MaybeArray } from "./types-CJ-XvOFN.js";
4
- import { MessageCommandOptions, MessageCommandParser } from "./MessageCommandParser-ROLibZPX.js";
5
- import { Command, CommandsRouter, Middleware } from "./CommandsRouter-CoOA7hkf.js";
6
- import { EventsRouter, ParsedEvent } from "./EventsRouter-BacqK6z3.js";
7
- import { HMREventType } from "./constants-MKu-Q1jh.js";
1
+ import { t as EventInterceptor } from "./EventInterceptor-D9JKMcfi.js";
2
+ import { a as Fragment, c as createElement } from "./element-DeLvTMfZ.js";
3
+ import { t as MaybeArray } from "./types-DZy7U-Ld.js";
4
+ import { r as MessageCommandParser, t as MessageCommandOptions } from "./MessageCommandParser-DPCbHXCS.js";
5
+ import { i as Middleware, n as CommandsRouter, t as Command } from "./CommandsRouter-DiNoF0dq.js";
6
+ import { i as ParsedEvent, t as EventsRouter } from "./EventsRouter-EuuSu6NH.js";
7
+ import { o as HMREventType } from "./constants-DwxpkIeH.js";
8
8
  import EventEmitter from "node:events";
9
9
  import { AutocompleteInteraction, Awaitable, CacheType, ChatInputCommandInteraction, Client, ClientEvents, Collection, Constructable, ContextMenuCommandBuilder, ContextMenuCommandInteraction, Guild, Interaction, Locale, Message, MessageContextMenuCommandInteraction, PermissionsString, RESTPostAPIApplicationCommandsJSONBody, SlashCommandBuilder, TextBasedChannel, UserContextMenuCommandInteraction } from "discord.js";
10
10
  import { DirectiveTransformerOptions } from "directive-to-hof";
11
- import { Options } from "tsdown";
11
+ import { InlineConfig } from "tsdown";
12
12
 
13
13
  //#region src/types.d.ts
14
14
  type Prettify<T> = { [K in keyof T]: T[K] } & {};
@@ -63,21 +63,6 @@ interface CommandMetadata {
63
63
  */
64
64
  nameAliases?: Record<'user' | 'message', string>;
65
65
  }
66
- /**
67
- * @deprecated Use `CommandMetadata` instead.
68
- */
69
- interface LegacyCommandMetadata {
70
- /**
71
- * The aliases of the command.
72
- * @deprecated Use `metadata.aliases` or `generateMetadata` instead.
73
- */
74
- aliases?: string[];
75
- /**
76
- * The guilds that the command is available in.
77
- * @deprecated Use `metadata.guilds` or `generateMetadata` instead.
78
- */
79
- guilds?: string[];
80
- }
81
66
  /**
82
67
  * Represents a command that can be executed by CommandKit.
83
68
  */
@@ -86,7 +71,7 @@ type CommandData = Prettify<Omit<RESTPostAPIApplicationCommandsJSONBody, 'descri
86
71
  * The description of the command.
87
72
  */
88
73
  description?: string;
89
- } & LegacyCommandMetadata>;
74
+ }>;
90
75
  /**
91
76
  * Represents an event handler for a specific event.
92
77
  */
@@ -242,7 +227,7 @@ declare class Context<ExecutionMode extends CommandExecutionMode = CommandExecut
242
227
  /**
243
228
  * The client instance.
244
229
  */
245
- readonly client: Client;
230
+ readonly client: Client<true>;
246
231
  /**
247
232
  * The command that this context belongs to.
248
233
  */
@@ -267,6 +252,10 @@ declare class Context<ExecutionMode extends CommandExecutionMode = CommandExecut
267
252
  * Gets the name of the current command.
268
253
  */
269
254
  get commandName(): string;
255
+ /**
256
+ * Gets the invoked command name (could be an alias for message commands)
257
+ */
258
+ get invokedCommandName(): string;
270
259
  /**
271
260
  * Gets the command options based on the execution mode.
272
261
  */
@@ -390,6 +379,7 @@ declare class CommandRegistrar {
390
379
  */
391
380
  getCommandsData(): (CommandData & {
392
381
  __metadata?: CommandMetadata;
382
+ __applyId(id: string): void;
393
383
  })[];
394
384
  /**
395
385
  * Registers loaded commands.
@@ -400,12 +390,14 @@ declare class CommandRegistrar {
400
390
  */
401
391
  updateGlobalCommands(commands: (CommandData & {
402
392
  __metadata?: CommandMetadata;
393
+ __applyId(id: string): void;
403
394
  })[]): Promise<void>;
404
395
  /**
405
396
  * Updates the guild commands.
406
397
  */
407
398
  updateGuildCommands(commands: (CommandData & {
408
399
  __metadata?: CommandMetadata;
400
+ __applyId(id: string): void;
409
401
  })[]): Promise<void>;
410
402
  }
411
403
  //#endregion
@@ -553,7 +545,7 @@ declare class CommandKitEnvironment {
553
545
  getExecutionTime(): number;
554
546
  }
555
547
  declare enum CommandKitEnvironmentType {
556
- CommandHandler = "COMMAND_HANDLER",
548
+ CommandHandler = "COMMAND_HANDLER"
557
549
  }
558
550
  /**
559
551
  * Schedules the given function to run after the current command has finished executing.
@@ -733,8 +725,22 @@ interface AppCommandMiddleware {
733
725
  * Represents a loaded command with its metadata and configuration.
734
726
  */
735
727
  interface LoadedCommand {
728
+ /**
729
+ * The associated discord snowflake id for this command.
730
+ * If the information is not yet available, this will be `null`.
731
+ */
732
+ discordId: string | null;
733
+ /**
734
+ * The command data.
735
+ */
736
736
  command: Command;
737
+ /**
738
+ * The metadata for this command.
739
+ */
737
740
  metadata: CommandMetadata;
741
+ /**
742
+ * The data for this command.
743
+ */
738
744
  data: AppCommand;
739
745
  }
740
746
  /**
@@ -866,6 +872,7 @@ declare class AppCommandHandler {
866
872
  * @returns The loaded command or null if not found
867
873
  */
868
874
  private findCommandByName;
875
+ resolveMessageCommandName(name: string): string;
869
876
  /**
870
877
  * Reloads all commands and middleware from scratch.
871
878
  */
@@ -992,6 +999,7 @@ declare class CommandKitEventsChannel {
992
999
  type EventListener = {
993
1000
  handler: ListenerFunction;
994
1001
  once: boolean;
1002
+ parallel: boolean;
995
1003
  };
996
1004
  /**
997
1005
  * Represents a loaded event with all its listeners.
@@ -1333,14 +1341,16 @@ declare abstract class CommonDirectiveTransformer extends CompilerPlugin<CommonD
1333
1341
  declare class CompilerPluginRuntime {
1334
1342
  #private;
1335
1343
  private readonly plugins;
1344
+ readonly isDevMode: boolean;
1336
1345
  readonly name = "CompilerPluginRuntime";
1337
1346
  private initialized;
1338
1347
  private templates;
1339
1348
  /**
1340
1349
  * Creates a new instance of CompilerPluginRuntime.
1341
1350
  * @param plugins An array of compiler plugins to be managed by this runtime.
1351
+ * @param isDevMode Whether the build is in development mode.
1342
1352
  */
1343
- constructor(plugins: CompilerPlugin[]);
1353
+ constructor(plugins: CompilerPlugin[], isDevMode: boolean);
1344
1354
  /**
1345
1355
  * Returns the plugins managed by this runtime.
1346
1356
  */
@@ -1426,7 +1436,7 @@ type PluginOptions = Record<string, any>;
1426
1436
  */
1427
1437
  declare enum PluginType {
1428
1438
  Compiler = "compiler",
1429
- Runtime = "runtime",
1439
+ Runtime = "runtime"
1430
1440
  }
1431
1441
  /**
1432
1442
  * Base class for CommandKit plugins.
@@ -1854,7 +1864,7 @@ interface CommandKitCompilerOptions {
1854
1864
  * The tsdown compiler options to use with CommandKit.
1855
1865
  * **DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING** as it alters the behavior of the build process.
1856
1866
  */
1857
- tsdown?: Partial<Options>;
1867
+ tsdown?: Partial<InlineConfig>;
1858
1868
  /**
1859
1869
  * Disables chunking of the output (production only, development never chunks).
1860
1870
  * @default false
@@ -1950,6 +1960,11 @@ interface CommandKitConfig {
1950
1960
  * @default true
1951
1961
  */
1952
1962
  showUnknownPrefixCommandsWarning?: boolean;
1963
+ /**
1964
+ * Whether to make interaction components optional by default when using JSX (opposite of Discord's default behavior).
1965
+ * @default true
1966
+ */
1967
+ jsxDefaultOptionalComponents?: boolean;
1953
1968
  }
1954
1969
  //#endregion
1955
1970
  //#region src/config/utils.d.ts
@@ -1990,7 +2005,7 @@ interface CommandKitConfiguration {
1990
2005
  * @param message The message to get the command prefix for.
1991
2006
  * @returns The command prefix or an array of prefixes.
1992
2007
  */
1993
- getMessageCommandPrefix: (message: Message) => Awaitable<string | string[]>;
2008
+ getMessageCommandPrefix: (message: Message) => Awaitable<string | string[] | RegExp>;
1994
2009
  }
1995
2010
  /**
1996
2011
  * Represents the function executed during the bootstrap phase of CommandKit.
@@ -2095,7 +2110,6 @@ declare class CommandKit extends EventEmitter {
2095
2110
  /**
2096
2111
  * Create a new command and event handler with CommandKit.
2097
2112
  * @param options - The default CommandKit configuration.
2098
- * @see {@link https://commandkit.js.org/docs/guide/commandkit-setup}
2099
2113
  */
2100
2114
  constructor(options?: CommandKitOptions);
2101
2115
  /**
@@ -2115,7 +2129,7 @@ declare class CommandKit extends EventEmitter {
2115
2129
  * Sets the prefix resolver for the command handler.
2116
2130
  * @param resolver The resolver function.
2117
2131
  */
2118
- setPrefixResolver(resolver: (message: Message) => Awaitable<string | string[]>): this;
2132
+ setPrefixResolver(resolver: (message: Message) => Awaitable<string | string[] | RegExp>): this;
2119
2133
  /**
2120
2134
  * Sets the default locale for the command handler.
2121
2135
  * @param locale The default locale.
@@ -2260,5 +2274,5 @@ declare class AnalyticsEngine {
2260
2274
  track(event: AnalyticsEvent): Promise<void>;
2261
2275
  }
2262
2276
  //#endregion
2263
- export { AnalyticsEngine, AnalyticsEvent, AnalyticsProvider, AnyCommandExecute, AppCommand, AppCommandHandler, AppCommandNative, AppCommandRunner, AppEventsHandler, AppEventsHandlerLoadedData, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitCompilerOptions, CommandKitConfig, CommandKitConfiguration, CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitEventDispatch, CommandKitEventsChannel, CommandKitHMREvent, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandMetadata, CommandMetadataFunction, CommandRegistrar, CommandTypeData, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, ContextParameters, CustomAppCommandProps, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, DeepPartial, DeepRequired, EvaluationContext, EventFlagContext, EventHandler, EventListener, FeatureFlag, FeatureFlagDefinition, FilterFunction, FlagConfiguration, FlagProvider, FlagRunner, FlagStore, GenericFunction, IdentifyEvent, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, IpcMessageCommand, JsonFlagProvider, LegacyCommandMetadata, ListenerFunction, LoadedCommand, LoadedEvent, MaybeFalsey, MaybePromise, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PluginCommon, PluginOptions, PluginTransformParameters, PluginType, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, ResolvedCommandKitConfig, RunCommand, RunCommandOptions, RuntimePlugin, SlashCommandMiddlewareContext, TemplateHandler, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, after, cancelAfter, commandkit, exitContext, flag, getCommandKit, getContext, isCommandWorkerContext, isCompilerPlugin, isPlugin, isRuntimePlugin, makeContextAwareFunction, mergeDeep, onApplicationBootstrap, onBootstrap, provideContext, registerDevHooks, setFlagProvider, useEnvironment, useStore };
2264
- //# sourceMappingURL=analytics-engine-B7JNRnEN.d.ts.map
2277
+ export { isRuntimePlugin as $, MessageCommand as $t, flag as A, makeContextAwareFunction as At, CommonPluginRuntime as B, PreRegisterCommandsEvent as Bt, EvaluationContext as C, RunCommandOptions as Ct, FlagRunner as D, getCommandKit as Dt, FeatureFlagDefinition as E, exitContext as Et, CommandKitPluginRuntime as F, CommandKitEnvironmentInternalData as Ft, PluginTransformParameters as G, ChatInputCommand as Gt, CommonDirectiveTransformer as H, AutocompleteCommand as Ht, PluginCommon as I, CommandKitEnvironmentType as It, CommandKitEventDispatch as J, CommandExecutionMode as Jt, TransformedResult as K, ChatInputCommandContext as Kt, PluginOptions as L, after as Lt, FlagConfiguration as M, useEnvironment as Mt, FlagProvider as N, useStore as Nt, IdentifyFunction as O, getContext as Ot, JsonFlagProvider as P, CommandKitEnvironment as Pt, RuntimePlugin as Q, InteractionCommandMiddlewareContext as Qt, PluginType as R, cancelAfter as Rt, DecideFunction as S, AppCommandRunner as St, FeatureFlag as T, GenericFunction as Tt, CommonDirectiveTransformerOptions as U, AutocompleteCommandContext as Ut, CompilerPluginRuntime as V, AnyCommandExecute as Vt, CompilerPlugin as W, AutocompleteCommandMiddlewareContext as Wt, MaybeFalsey as X, ContextParameters as Xt, CommandKitPlugin as Y, Context as Yt, TemplateHandler as Z, InteractionCommandContext as Zt, CommandKitConfig as _, CustomAppCommandProps as _t, IdentifyEvent as a, MiddlewareContext as an, EventListener as at, CustomEvaluationContext as b, ResolvableCommand as bt, CommandKitConfiguration as c, UserContextMenuCommand as cn, ListenerFunction as ct, onBootstrap as d, CommandContext as dn, AppCommandNative as dt, MessageCommandContext as en, CommandKitHMREvent as et, DeepPartial as f, CommandData as fn, CommandBuilderLike as ft, CommandKitCompilerOptions as g, EventHandler as gn, CommandTypeData as gt, mergeDeep as h, CommandMetadataFunction as hn, CommandDataSchemaValue as ht, AnalyticsProvider as i, MessageContextMenuCommandMiddlewareContext as in, AppEventsHandlerLoadedData as it, setFlagProvider as j, provideContext as jt, MaybePromise as k, isCommandWorkerContext as kt, commandkit as l, UserContextMenuCommandContext as ln, AppCommand as lt, ResolvedCommandKitConfig as m, CommandMetadata as mn, CommandDataSchemaKey as mt, FilterFunction as n, MessageContextMenuCommand as nn, registerDevHooks as nt, BootstrapFunction as o, MiddlewareContextArgs as on, LoadedEvent as ot, DeepRequired as p, CommandKitOptions as pn, CommandDataSchema as pt, isCompilerPlugin as q, CommandContextOptions as qt, AnalyticsEvent as r, MessageContextMenuCommandContext as rn, AppEventsHandler as rt, CommandKit as s, SlashCommandMiddlewareContext as sn, CommandKitEventsChannel as st, AnalyticsEngine as t, MessageCommandMiddlewareContext as tn, IpcMessageCommand as tt, onApplicationBootstrap as u, UserContextMenuCommandMiddlewareContext as un, AppCommandHandler as ut, FlagStore as v, LoadedCommand as vt, EventFlagContext as w, AsyncFunction as wt, CustomEvaluationFunction as x, RunCommand as xt, CommandFlagContext as y, PreparedAppCommandExecution as yt, isPlugin as z, CommandRegistrar as zt };
2278
+ //# sourceMappingURL=analytics-engine-DnRsHBId.d.ts.map
@@ -1,32 +1,2 @@
1
- import { AppCommandRunner, RunCommandOptions } from "../../analytics-engine-B7JNRnEN.js";
2
- import "../../EventInterceptor-x-R2qshQ.js";
3
- import "../../ButtonKit-C7r7RPNf.js";
4
- import "../../ModalKit-Btz58KYn.js";
5
- import "../../element-CAXu1XtK.js";
6
- import "../../ActionRow-DKnFVDME.js";
7
- import "../../types-CJ-XvOFN.js";
8
- import "../../Button-4ZUXdA56.js";
9
- import "../../Modal-C6UTRdYQ.js";
10
- import "../../common-DOCvOVC4.js";
11
- import "../../StringSelectMenuKit-Bhs8U6WI.js";
12
- import "../../ChannelSelectMenuKit-BrXvBYNH.js";
13
- import "../../MentionableSelectMenuKit-CPTKqx-O.js";
14
- import "../../UserSelectMenuKit-CfqFJdxz.js";
15
- import "../../RoleSelectMenuKit-C26lU3sN.js";
16
- import "../../SelectMenu-Diy87_ba.js";
17
- import "../../container-DHBELeJ3.js";
18
- import "../../file-DTrr-p09.js";
19
- import "../../media-gallery-BMsXSot3.js";
20
- import "../../section-Dh_FhPeC.js";
21
- import "../../separator-CMf6Cyy5.js";
22
- import "../../text-display-DRw3r_lK.js";
23
- import "../../index-DSBMRX9A.js";
24
- import "../../index-DdqikUQD.js";
25
- import "../../MessageCommandParser-ROLibZPX.js";
26
- import "../../signals-SHg7J1U_.js";
27
- import "../../helpers-Wg6P5fRQ.js";
28
- import "../../CommandsRouter-CoOA7hkf.js";
29
- import "../../EventsRouter-BacqK6z3.js";
30
- import "../../index-DKcmsWXw.js";
31
- import "../../constants-MKu-Q1jh.js";
1
+ import { Ct as RunCommandOptions, St as AppCommandRunner } from "../../analytics-engine-DnRsHBId.js";
32
2
  export { AppCommandRunner, RunCommandOptions };
@@ -1,38 +1,4 @@
1
- require('../../colors-DL3ucTiT.js');
2
- require('../../ActionRow-CbdGFWMT.js');
3
- require('../../error-codes-Ds0bnPvT.js');
4
- const require_commandkit = require('../../commandkit-Bm0gLN8i.js');
5
- require('../../common-CcfjYnPG.js');
6
- require('../../common-vnMIelAE.js');
7
- require('../../container-C6GtfAPW.js');
8
- require('../../file-DVOELoNv.js');
9
- require('../../media-gallery-zDtJ3kxb.js');
10
- require('../../section-DlvrDoJK.js');
11
- require('../../separator-DL6QH5H1.js');
12
- require('../../text-display-DbMumig_.js');
13
- require('../../v2-DofkPKHs.js');
14
- require('../../element-Bak9llw_.js');
15
- require('../../types-CUZOquUl.js');
16
- require('../../EventInterceptor-CQEXyUTp.js');
17
- require('../../constants-B5_Ta7PR.js');
18
- require('../../PluginCommon-Cvl5yYM_.js');
19
- require('../../CompilerPlugin-M8r3yNAl.js');
20
- require('../../RuntimePlugin-BUecuBIU.js');
21
- require('../../types-q0Nm882H.js');
22
- require('../../resolve-file-url-ChIyw-Vf.js');
23
- require('../../runtime-DB9CiPfe.js');
24
- require('../../utils-KsNof0Xz.js');
25
- require('../../types-package-BWArjyBF.js');
26
- require('../../constants-BOOGN85p.js');
27
- require('../../EventWorkerContext-Dq29tieI.js');
28
- require('../../signals-ChFMD7mB.js');
29
- require('../../MessageCommandParser-CEuO6Ex3.js');
30
- require('../../helpers-BSwwrKJW.js');
31
- require('../../CommandsRouter-Cgcy6cK9.js');
32
- require('../../EventsRouter-3Gygh-km.js');
33
- require('../../router-Dn35v30f.js');
34
- require('../../common-Dxr9-XPa.js');
35
- require('../../CommandKitEventsChannel-BtRzr3Tz.js');
36
- require('../../store-CM6pWVZh.js');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_commandkit = require('../../commandkit-Bh7C1_c7.js');
37
3
 
38
4
  exports.AppCommandRunner = require_commandkit.AppCommandRunner;
@@ -1,32 +1,2 @@
1
- import { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../../analytics-engine-B7JNRnEN.js";
2
- import "../../EventInterceptor-x-R2qshQ.js";
3
- import "../../ButtonKit-C7r7RPNf.js";
4
- import "../../ModalKit-Btz58KYn.js";
5
- import "../../element-CAXu1XtK.js";
6
- import "../../ActionRow-DKnFVDME.js";
7
- import "../../types-CJ-XvOFN.js";
8
- import "../../Button-4ZUXdA56.js";
9
- import "../../Modal-C6UTRdYQ.js";
10
- import "../../common-DOCvOVC4.js";
11
- import "../../StringSelectMenuKit-Bhs8U6WI.js";
12
- import "../../ChannelSelectMenuKit-BrXvBYNH.js";
13
- import "../../MentionableSelectMenuKit-CPTKqx-O.js";
14
- import "../../UserSelectMenuKit-CfqFJdxz.js";
15
- import "../../RoleSelectMenuKit-C26lU3sN.js";
16
- import "../../SelectMenu-Diy87_ba.js";
17
- import "../../container-DHBELeJ3.js";
18
- import "../../file-DTrr-p09.js";
19
- import "../../media-gallery-BMsXSot3.js";
20
- import "../../section-Dh_FhPeC.js";
21
- import "../../separator-CMf6Cyy5.js";
22
- import "../../text-display-DRw3r_lK.js";
23
- import "../../index-DSBMRX9A.js";
24
- import "../../index-DdqikUQD.js";
25
- import "../../MessageCommandParser-ROLibZPX.js";
26
- import "../../signals-SHg7J1U_.js";
27
- import "../../helpers-Wg6P5fRQ.js";
28
- import "../../CommandsRouter-CoOA7hkf.js";
29
- import "../../EventsRouter-BacqK6z3.js";
30
- import "../../index-DKcmsWXw.js";
31
- import "../../constants-MKu-Q1jh.js";
1
+ import { $t as MessageCommand, Gt as ChatInputCommand, Ht as AutocompleteCommand, Jt as CommandExecutionMode, Kt as ChatInputCommandContext, Qt as InteractionCommandMiddlewareContext, Ut as AutocompleteCommandContext, Vt as AnyCommandExecute, Wt as AutocompleteCommandMiddlewareContext, Xt as ContextParameters, Yt as Context, Zt as InteractionCommandContext, an as MiddlewareContext, cn as UserContextMenuCommand, en as MessageCommandContext, in as MessageContextMenuCommandMiddlewareContext, ln as UserContextMenuCommandContext, nn as MessageContextMenuCommand, on as MiddlewareContextArgs, qt as CommandContextOptions, rn as MessageContextMenuCommandContext, sn as SlashCommandMiddlewareContext, tn as MessageCommandMiddlewareContext, un as UserContextMenuCommandMiddlewareContext } from "../../analytics-engine-DnRsHBId.js";
32
2
  export { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext };
@@ -1,39 +1,5 @@
1
- require('../../colors-DL3ucTiT.js');
2
- require('../../ActionRow-CbdGFWMT.js');
3
- require('../../error-codes-Ds0bnPvT.js');
4
- const require_commandkit = require('../../commandkit-Bm0gLN8i.js');
5
- require('../../common-CcfjYnPG.js');
6
- require('../../common-vnMIelAE.js');
7
- require('../../container-C6GtfAPW.js');
8
- require('../../file-DVOELoNv.js');
9
- require('../../media-gallery-zDtJ3kxb.js');
10
- require('../../section-DlvrDoJK.js');
11
- require('../../separator-DL6QH5H1.js');
12
- require('../../text-display-DbMumig_.js');
13
- require('../../v2-DofkPKHs.js');
14
- require('../../element-Bak9llw_.js');
15
- require('../../types-CUZOquUl.js');
16
- require('../../EventInterceptor-CQEXyUTp.js');
17
- require('../../constants-B5_Ta7PR.js');
18
- require('../../PluginCommon-Cvl5yYM_.js');
19
- require('../../CompilerPlugin-M8r3yNAl.js');
20
- require('../../RuntimePlugin-BUecuBIU.js');
21
- require('../../types-q0Nm882H.js');
22
- require('../../resolve-file-url-ChIyw-Vf.js');
23
- require('../../runtime-DB9CiPfe.js');
24
- require('../../utils-KsNof0Xz.js');
25
- require('../../types-package-BWArjyBF.js');
26
- require('../../constants-BOOGN85p.js');
27
- require('../../EventWorkerContext-Dq29tieI.js');
28
- require('../../signals-ChFMD7mB.js');
29
- require('../../MessageCommandParser-CEuO6Ex3.js');
30
- require('../../helpers-BSwwrKJW.js');
31
- require('../../CommandsRouter-Cgcy6cK9.js');
32
- require('../../EventsRouter-3Gygh-km.js');
33
- require('../../router-Dn35v30f.js');
34
- require('../../common-Dxr9-XPa.js');
35
- require('../../CommandKitEventsChannel-BtRzr3Tz.js');
36
- require('../../store-CM6pWVZh.js');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_commandkit = require('../../commandkit-Bh7C1_c7.js');
37
3
 
38
4
  exports.CommandExecutionMode = require_commandkit.CommandExecutionMode;
39
5
  exports.Context = require_commandkit.Context;
@@ -1,2 +1,2 @@
1
- import { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand } from "../../MessageCommandParser-ROLibZPX.js";
1
+ import { i as ParsedMessageCommand, n as MessageCommandOptionsSchema, r as MessageCommandParser, t as MessageCommandOptions } from "../../MessageCommandParser-DPCbHXCS.js";
2
2
  export { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand };