commandkit 1.2.0-rc.3 → 1.2.0-rc.5
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/README.md +4 -12
- package/dist/ActionRow-CmTHbo2t.js.map +1 -1
- package/dist/CommandKitEventsChannel-Bgw0XCOl.js.map +1 -1
- package/dist/CommandsRouter-tMAivEfv.js.map +1 -1
- package/dist/CompilerPlugin-CjoZAAR8.js.map +1 -1
- package/dist/{DefaultLogger-Cy55-uPl.d.ts → DefaultLogger-XCOl5nLd.d.ts} +19 -12
- package/dist/EventInterceptor-CQ4PBpBJ.js.map +1 -1
- package/dist/{EventWorkerContext-C7CG7hIP.d.ts → EventWorkerContext-D9frVhVe.d.ts} +2 -2
- package/dist/{EventWorkerContext-CSlD9rbx.js → EventWorkerContext-TZIKxVCu.js} +1 -1
- package/dist/{EventWorkerContext-CSlD9rbx.js.map → EventWorkerContext-TZIKxVCu.js.map} +1 -1
- package/dist/EventsRouter-C_J0M3uO.js.map +1 -1
- package/dist/ILogger-BW8GM-YZ.d.ts +64 -0
- package/dist/{Logger-iSjA-DWN.d.ts → Logger-DyfkPk7u.d.ts} +2 -2
- package/dist/{MessageCommandParser-B_BEQ3p8.js → MessageCommandParser-TPEPhjvx.js} +2 -2
- package/dist/{MessageCommandParser-B_BEQ3p8.js.map → MessageCommandParser-TPEPhjvx.js.map} +1 -1
- package/dist/PluginCommon-Di1xIa8d.js.map +1 -1
- package/dist/{RuntimePlugin-CBgBLXTG.js → RuntimePlugin-eTdFJwGd.js} +2 -1
- package/dist/RuntimePlugin-eTdFJwGd.js.map +1 -0
- package/dist/analytics/analytics-engine.d.ts +2 -2
- package/dist/analytics/analytics-engine.js +10 -10
- package/dist/analytics/analytics-provider.d.ts +2 -2
- package/dist/analytics/constants.js +1 -1
- package/dist/analytics/utils.js +10 -10
- package/dist/{analytics-engine-nkyqvYAE.d.ts → analytics-engine-CtMbeudW.d.ts} +89 -26
- package/dist/app/commands/AppCommandRunner.d.ts +2 -2
- package/dist/app/commands/AppCommandRunner.js +10 -10
- package/dist/app/commands/Context.d.ts +2 -2
- package/dist/app/commands/Context.js +10 -10
- package/dist/app/commands/MessageCommandParser.js +2 -2
- package/dist/app/events/EventWorkerContext.d.ts +3 -3
- package/dist/app/events/EventWorkerContext.js +1 -1
- package/dist/app/handlers/AppCommandHandler.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.js +10 -10
- package/dist/app/handlers/AppEventsHandler.d.ts +2 -2
- package/dist/app/handlers/AppEventsHandler.js +10 -10
- package/dist/app/index.d.ts +3 -3
- package/dist/app/index.js +12 -12
- package/dist/app/interrupt/signals.d.ts +2 -2
- package/dist/app/interrupt/signals.js +5 -5
- package/dist/app/middlewares/permissions.d.ts +42 -0
- package/dist/app/middlewares/permissions.js +38 -0
- package/dist/app/register/CommandRegistrar.d.ts +2 -2
- package/dist/app/register/CommandRegistrar.js +10 -10
- package/dist/app-process-CjMovpoZ.js.map +1 -1
- package/dist/{build-BoGqWPIS.js → build-D52II1qS.js} +4 -3
- package/dist/build-D52II1qS.js.map +1 -0
- package/dist/cli/build.d.ts +2 -2
- package/dist/cli/build.js +11 -11
- package/dist/cli/common.d.ts +2 -2
- package/dist/cli/development.js +12 -12
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/generators.js +33 -5
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.js +1 -1
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.js +11 -11
- package/dist/cli/production.js +11 -11
- package/dist/cli/production.js.map +1 -1
- package/dist/{commandkit-5VMG2thU.js → commandkit-BPtNCbV8.js} +363 -202
- package/dist/commandkit-BPtNCbV8.js.map +1 -0
- package/dist/commandkit.d.ts +2 -2
- package/dist/commandkit.js +10 -10
- package/dist/common-DNADUU3_.js.map +1 -1
- package/dist/common-vnMIelAE.js.map +1 -1
- package/dist/components/index.js +10 -10
- package/dist/components/v1/button/Button.js +10 -10
- package/dist/components/v1/button/ButtonKit.js +10 -10
- package/dist/components/v1/modal/Modal.js +10 -10
- package/dist/components/v1/modal/ModalKit.js +10 -10
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +10 -10
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +10 -10
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +10 -10
- package/dist/components/v1/select-menu/SelectMenu.js +10 -10
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +10 -10
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +10 -10
- package/dist/config/config.d.ts +3 -3
- package/dist/config/config.js +10 -10
- package/dist/config/default.d.ts +2 -2
- package/dist/config/default.js +10 -10
- package/dist/config/loader.d.ts +2 -2
- package/dist/config/loader.js +10 -10
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +2 -2
- package/dist/config/utils.js +1 -1
- package/dist/{config-C1msSu1G.d.ts → config-E42bG1RK.d.ts} +2 -2
- package/dist/constants-4oxxvaJA.js.map +1 -1
- package/dist/constants-B5_Ta7PR.js.map +1 -1
- package/dist/{constants-CUND8XkG.js → constants-DxfYtA6t.js} +1 -1
- package/dist/{constants-CUND8XkG.js.map → constants-DxfYtA6t.js.map} +1 -1
- package/dist/container-z621KfH5.js.map +1 -1
- package/dist/context/async-context.d.ts +2 -2
- package/dist/context/async-context.js +10 -10
- package/dist/context/environment.d.ts +2 -2
- package/dist/context/environment.js +10 -10
- package/dist/dotprops-C_4L7RPD.js.map +1 -1
- package/dist/element-Bak9llw_.js.map +1 -1
- package/dist/env-_68PRRoA.js.map +1 -1
- package/dist/{error-codes-BzoEctmD.d.ts → error-codes-B4TyW4Ct.d.ts} +2 -2
- package/dist/{error-codes-C-ViHyu-.js → error-codes-Ds0bnPvT.js} +2 -2
- package/dist/error-codes-Ds0bnPvT.js.map +1 -0
- package/dist/events/CommandKitEventsChannel.d.ts +2 -2
- package/dist/{feature-flags-C44dggkN.js → feature-flags-BZ3mW1xe.js} +5 -5
- package/dist/{feature-flags-C44dggkN.js.map → feature-flags-BZ3mW1xe.js.map} +1 -1
- package/dist/file-DVZC0QXI.js.map +1 -1
- package/dist/flags/FlagProvider.d.ts +2 -2
- package/dist/flags/FlagProvider.js.map +1 -1
- package/dist/flags/feature-flags.d.ts +2 -2
- package/dist/flags/feature-flags.js +11 -11
- package/dist/flags/store.d.ts +2 -2
- package/dist/helpers-BUlN3lIz.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +23 -18
- package/dist/index.js.map +1 -0
- package/dist/{init-ZjceQTSt.js → init-BjFLN5XX.js} +2 -2
- package/dist/{init-ZjceQTSt.js.map → init-BjFLN5XX.js.map} +1 -1
- package/dist/kv/kv.js.map +1 -1
- package/dist/logger/DefaultLogger.d.ts +2 -2
- package/dist/logger/DefaultLogger.js +10 -10
- package/dist/logger/ILogger.d.ts +1 -1
- package/dist/logger/Logger.d.ts +2 -2
- package/dist/logger/Logger.js +10 -10
- package/dist/logger/NoopLogger.d.ts +41 -11
- package/dist/logger/NoopLogger.js +5 -25
- package/dist/logger/NoopLogger.js.map +1 -1
- package/dist/media-gallery-CIKypjbJ.js.map +1 -1
- package/dist/plugins/CompilerPlugin.d.ts +2 -2
- package/dist/plugins/PluginCommon.d.ts +2 -2
- package/dist/plugins/RuntimePlugin.d.ts +2 -2
- package/dist/plugins/RuntimePlugin.js +1 -1
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.js +10 -10
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +10 -10
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +10 -10
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +10 -10
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +10 -10
- package/dist/plugins/plugin-runtime/runtime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/runtime.js +1 -1
- package/dist/plugins/types.d.ts +2 -2
- package/dist/{resolve-file-url-DHTQj2mU.js → resolve-file-url-DYjaxg_S.js} +1 -1
- package/dist/{resolve-file-url-DHTQj2mU.js.map → resolve-file-url-DYjaxg_S.js.map} +1 -1
- package/dist/section-CuYr0Inu.js.map +1 -1
- package/dist/separator-DLdWBjSN.js.map +1 -1
- package/dist/serde-CHySNpFr.js.map +1 -1
- package/dist/{signals-BQbEfy3X.d.ts → signals-SHg7J1U_.d.ts} +4 -7
- package/dist/{signals-DHdYrd-n.js → signals-r7qPAvOR.js} +12 -15
- package/dist/signals-r7qPAvOR.js.map +1 -0
- package/dist/store-CiqLHedg.js.map +1 -1
- package/dist/text-display--p2-BoUa.js.map +1 -1
- package/dist/type-checker-1Iu1jJcy.js.map +1 -1
- package/dist/types-package-DrnIdWLg.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/utils/dev-hooks.d.ts +2 -2
- package/dist/utils/dev-hooks.js +10 -10
- package/dist/utils/error-codes.d.ts +1 -1
- package/dist/utils/error-codes.js +1 -1
- package/dist/utils/resolve-file-url.js +1 -1
- package/dist/utils/useful-stuff/async-queue.js.map +1 -1
- package/dist/utils/useful-stuff/mutex.js.map +1 -1
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.js +10 -10
- package/dist/utils/warn-unstable.js.map +1 -1
- package/dist/utils-DCSnVAZ6.js.map +1 -1
- package/dist/{utils-BnXM4eKk.js → utils-KsNof0Xz.js} +1 -1
- package/dist/{utils-BnXM4eKk.js.map → utils-KsNof0Xz.js.map} +1 -1
- package/dist/{version-D8HlFOxx.js → version-DBXZ4wRb.js} +2 -2
- package/dist/{version-D8HlFOxx.js.map → version-DBXZ4wRb.js.map} +1 -1
- package/dist/version.js +1 -1
- package/package.json +60 -59
- package/dist/ILogger-DBGON5wx.d.ts +0 -34
- package/dist/RuntimePlugin-CBgBLXTG.js.map +0 -1
- package/dist/build-BoGqWPIS.js.map +0 -1
- package/dist/commandkit-5VMG2thU.js.map +0 -1
- package/dist/error-codes-C-ViHyu-.js.map +0 -1
- package/dist/signals-DHdYrd-n.js.map +0 -1
- /package/dist/{runtime-5fxB4uhe.js → runtime-DB9CiPfe.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsEvent, AnalyticsProvider, IdentifyEvent } from "../analytics-engine-
|
|
1
|
+
import { AnalyticsEvent, AnalyticsProvider, IdentifyEvent } from "../analytics-engine-CtMbeudW.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-C7r7RPNf.js";
|
|
4
4
|
import "../ModalKit-Btz58KYn.js";
|
|
@@ -23,7 +23,7 @@ import "../text-display-DRw3r_lK.js";
|
|
|
23
23
|
import "../index-DSBMRX9A.js";
|
|
24
24
|
import "../index-DdqikUQD.js";
|
|
25
25
|
import "../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../signals-
|
|
26
|
+
import "../signals-SHg7J1U_.js";
|
|
27
27
|
import "../helpers-Wg6P5fRQ.js";
|
|
28
28
|
import "../CommandsRouter-CoOA7hkf.js";
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
package/dist/analytics/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../ActionRow-CmTHbo2t.js');
|
|
3
|
-
require('../error-codes-
|
|
4
|
-
const require_commandkit = require('../commandkit-
|
|
3
|
+
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
+
const require_commandkit = require('../commandkit-BPtNCbV8.js');
|
|
5
5
|
require('../common-CcfjYnPG.js');
|
|
6
6
|
require('../common-vnMIelAE.js');
|
|
7
7
|
require('../container-z621KfH5.js');
|
|
@@ -17,16 +17,16 @@ require('../EventInterceptor-CQ4PBpBJ.js');
|
|
|
17
17
|
require('../constants-B5_Ta7PR.js');
|
|
18
18
|
require('../PluginCommon-Di1xIa8d.js');
|
|
19
19
|
require('../CompilerPlugin-CjoZAAR8.js');
|
|
20
|
-
require('../RuntimePlugin-
|
|
20
|
+
require('../RuntimePlugin-eTdFJwGd.js');
|
|
21
21
|
require('../types-q0Nm882H.js');
|
|
22
|
-
require('../
|
|
23
|
-
require('../
|
|
24
|
-
require('../
|
|
22
|
+
require('../resolve-file-url-DYjaxg_S.js');
|
|
23
|
+
require('../runtime-DB9CiPfe.js');
|
|
24
|
+
require('../utils-KsNof0Xz.js');
|
|
25
25
|
require('../types-package-DrnIdWLg.js');
|
|
26
|
-
require('../
|
|
27
|
-
require('../
|
|
28
|
-
require('../
|
|
29
|
-
require('../MessageCommandParser-
|
|
26
|
+
require('../constants-DxfYtA6t.js');
|
|
27
|
+
require('../EventWorkerContext-TZIKxVCu.js');
|
|
28
|
+
require('../signals-r7qPAvOR.js');
|
|
29
|
+
require('../MessageCommandParser-TPEPhjvx.js');
|
|
30
30
|
require('../CommandsRouter-tMAivEfv.js');
|
|
31
31
|
require('../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../router-DHnFRADH.js');
|
|
@@ -6,7 +6,7 @@ import { Command, CommandsRouter, Middleware } from "./CommandsRouter-CoOA7hkf.j
|
|
|
6
6
|
import { EventsRouter, ParsedEvent } from "./EventsRouter-BacqK6z3.js";
|
|
7
7
|
import { HMREventType } from "./constants-MKu-Q1jh.js";
|
|
8
8
|
import EventEmitter from "node:events";
|
|
9
|
-
import { AutocompleteInteraction, Awaitable, CacheType, ChatInputCommandInteraction, Client, ClientEvents, Collection, Constructable, ContextMenuCommandBuilder, ContextMenuCommandInteraction, Guild, Interaction, Locale, Message, MessageContextMenuCommandInteraction, RESTPostAPIApplicationCommandsJSONBody, SlashCommandBuilder, TextBasedChannel, UserContextMenuCommandInteraction } from "discord.js";
|
|
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
11
|
import { Options } from "tsdown";
|
|
12
12
|
|
|
@@ -38,18 +38,59 @@ interface CommandContext<T extends Interaction, Cached extends CacheType> {
|
|
|
38
38
|
*/
|
|
39
39
|
handler: CommandKit;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Represents the command metadata.
|
|
43
|
+
*/
|
|
44
|
+
interface CommandMetadata {
|
|
45
|
+
/**
|
|
46
|
+
* The guilds that the command is available in.
|
|
47
|
+
*/
|
|
48
|
+
guilds?: string[];
|
|
49
|
+
/**
|
|
50
|
+
* The aliases of the command.
|
|
51
|
+
*/
|
|
52
|
+
aliases?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* The user permissions required to execute the command.
|
|
55
|
+
*/
|
|
56
|
+
userPermissions?: PermissionsString | PermissionsString[];
|
|
57
|
+
/**
|
|
58
|
+
* The bot permissions required to execute the command.
|
|
59
|
+
*/
|
|
60
|
+
botPermissions?: PermissionsString | PermissionsString[];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Use `CommandMetadata` instead.
|
|
64
|
+
*/
|
|
65
|
+
interface LegacyCommandMetadata {
|
|
66
|
+
/**
|
|
67
|
+
* The aliases of the command.
|
|
68
|
+
* @deprecated Use `metadata.aliases` or `generateMetadata` instead.
|
|
69
|
+
*/
|
|
70
|
+
aliases?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* The guilds that the command is available in.
|
|
73
|
+
* @deprecated Use `metadata.guilds` or `generateMetadata` instead.
|
|
74
|
+
*/
|
|
75
|
+
guilds?: string[];
|
|
76
|
+
}
|
|
41
77
|
/**
|
|
42
78
|
* Represents a command that can be executed by CommandKit.
|
|
43
79
|
*/
|
|
44
80
|
type CommandData = Prettify<Omit<RESTPostAPIApplicationCommandsJSONBody, 'description'> & {
|
|
81
|
+
/**
|
|
82
|
+
* The description of the command.
|
|
83
|
+
*/
|
|
45
84
|
description?: string;
|
|
46
|
-
|
|
47
|
-
aliases?: string[];
|
|
48
|
-
}>;
|
|
85
|
+
} & LegacyCommandMetadata>;
|
|
49
86
|
/**
|
|
50
87
|
* Represents an event handler for a specific event.
|
|
51
88
|
*/
|
|
52
89
|
type EventHandler<K extends keyof ClientEvents> = (...args: [...ClientEvents[K], Client<true>, CommandKit]) => void | Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* The command metadata function
|
|
92
|
+
*/
|
|
93
|
+
type CommandMetadataFunction = () => Promise<CommandMetadata> | CommandMetadata;
|
|
53
94
|
//#endregion
|
|
54
95
|
//#region src/app/commands/Context.d.ts
|
|
55
96
|
/**
|
|
@@ -300,27 +341,11 @@ declare class Context<ExecutionMode extends CommandExecutionMode = CommandExecut
|
|
|
300
341
|
* @returns Array of command arguments
|
|
301
342
|
*/
|
|
302
343
|
args(): string[];
|
|
303
|
-
/**
|
|
304
|
-
* Stops upcoming middleware or current command execution.
|
|
305
|
-
* If this is called inside pre-stage middleware, the next run will be the actual command, skipping all other pre-stage middlewares.
|
|
306
|
-
* If this is called inside a command itself, it will skip all post-stage middlewares.
|
|
307
|
-
* If this is called inside post-stage middleware, it will skip all other post-stage middlewares.
|
|
308
|
-
*/
|
|
309
|
-
exit(): never;
|
|
310
344
|
}
|
|
311
345
|
/**
|
|
312
346
|
* Extended context class for middleware execution with additional control methods.
|
|
313
347
|
*/
|
|
314
348
|
declare class MiddlewareContext<T extends CommandExecutionMode = CommandExecutionMode> extends Context<T, MiddlewareContextArgs> {
|
|
315
|
-
#private;
|
|
316
|
-
/**
|
|
317
|
-
* Whether the command execution was cancelled.
|
|
318
|
-
*/
|
|
319
|
-
get cancelled(): boolean;
|
|
320
|
-
/**
|
|
321
|
-
* Cancels the command execution.
|
|
322
|
-
*/
|
|
323
|
-
cancel(): void;
|
|
324
349
|
/**
|
|
325
350
|
* Sets command runner function to wrap the command execution.
|
|
326
351
|
* @param fn The function to set.
|
|
@@ -359,7 +384,9 @@ declare class CommandRegistrar {
|
|
|
359
384
|
/**
|
|
360
385
|
* Gets the commands data.
|
|
361
386
|
*/
|
|
362
|
-
getCommandsData(): CommandData
|
|
387
|
+
getCommandsData(): (CommandData & {
|
|
388
|
+
__metadata?: CommandMetadata;
|
|
389
|
+
})[];
|
|
363
390
|
/**
|
|
364
391
|
* Registers loaded commands.
|
|
365
392
|
*/
|
|
@@ -367,11 +394,15 @@ declare class CommandRegistrar {
|
|
|
367
394
|
/**
|
|
368
395
|
* Updates the global commands.
|
|
369
396
|
*/
|
|
370
|
-
updateGlobalCommands(commands: CommandData
|
|
397
|
+
updateGlobalCommands(commands: (CommandData & {
|
|
398
|
+
__metadata?: CommandMetadata;
|
|
399
|
+
})[]): Promise<void>;
|
|
371
400
|
/**
|
|
372
401
|
* Updates the guild commands.
|
|
373
402
|
*/
|
|
374
|
-
updateGuildCommands(commands: CommandData
|
|
403
|
+
updateGuildCommands(commands: (CommandData & {
|
|
404
|
+
__metadata?: CommandMetadata;
|
|
405
|
+
})[]): Promise<void>;
|
|
375
406
|
}
|
|
376
407
|
//#endregion
|
|
377
408
|
//#region src/context/environment.d.ts
|
|
@@ -631,6 +662,7 @@ declare class AppCommandRunner {
|
|
|
631
662
|
* Handles the complete command lifecycle including before/after middleware execution.
|
|
632
663
|
* @param prepared - The prepared command execution data
|
|
633
664
|
* @param source - The source interaction or message that triggered the command
|
|
665
|
+
* @param options - The options for running the command
|
|
634
666
|
*/
|
|
635
667
|
runCommand(prepared: PreparedAppCommandExecution, source: Interaction | Message, options?: RunCommandOptions): Promise<any>;
|
|
636
668
|
/**
|
|
@@ -653,6 +685,8 @@ type RunCommand = <T extends AsyncFunction>(fn: T) => T;
|
|
|
653
685
|
*/
|
|
654
686
|
interface AppCommandNative {
|
|
655
687
|
command: CommandData | Record<string, any>;
|
|
688
|
+
generateMetadata?: CommandMetadataFunction;
|
|
689
|
+
metadata?: CommandMetadata;
|
|
656
690
|
chatInput?: (ctx: Context) => Awaitable<unknown>;
|
|
657
691
|
autocomplete?: (ctx: Context) => Awaitable<unknown>;
|
|
658
692
|
message?: (ctx: Context) => Awaitable<unknown>;
|
|
@@ -684,8 +718,8 @@ interface AppCommandMiddleware {
|
|
|
684
718
|
*/
|
|
685
719
|
interface LoadedCommand {
|
|
686
720
|
command: Command;
|
|
721
|
+
metadata: CommandMetadata;
|
|
687
722
|
data: AppCommand;
|
|
688
|
-
guilds?: string[];
|
|
689
723
|
}
|
|
690
724
|
/**
|
|
691
725
|
* Type representing command data identifier.
|
|
@@ -727,8 +761,20 @@ declare const commandDataSchema: {
|
|
|
727
761
|
messageContextMenu: (c: unknown) => c is Function;
|
|
728
762
|
userContextMenu: (c: unknown) => c is Function;
|
|
729
763
|
};
|
|
764
|
+
/**
|
|
765
|
+
* @private
|
|
766
|
+
* @internal
|
|
767
|
+
*/
|
|
730
768
|
type CommandDataSchema = typeof commandDataSchema;
|
|
769
|
+
/**
|
|
770
|
+
* @private
|
|
771
|
+
* @internal
|
|
772
|
+
*/
|
|
731
773
|
type CommandDataSchemaKey = keyof CommandDataSchema;
|
|
774
|
+
/**
|
|
775
|
+
* @private
|
|
776
|
+
* @internal
|
|
777
|
+
*/
|
|
732
778
|
type CommandDataSchemaValue = CommandDataSchema[CommandDataSchemaKey];
|
|
733
779
|
/**
|
|
734
780
|
* Handles application commands for CommandKit, including loading, registration, and execution.
|
|
@@ -841,6 +887,12 @@ declare class AppCommandHandler {
|
|
|
841
887
|
* @internal
|
|
842
888
|
*/
|
|
843
889
|
private loadCommand;
|
|
890
|
+
/**
|
|
891
|
+
* Gets the metadata for a command.
|
|
892
|
+
* @param command - The command name to get metadata for
|
|
893
|
+
* @returns The command metadata or null if not found
|
|
894
|
+
*/
|
|
895
|
+
getMetadataFor(command: string): CommandMetadata | null;
|
|
844
896
|
}
|
|
845
897
|
//#endregion
|
|
846
898
|
//#region src/events/CommandKitEventsChannel.d.ts
|
|
@@ -1039,6 +1091,7 @@ declare function registerDevHooks(commandkit: CommandKit): void;
|
|
|
1039
1091
|
*/
|
|
1040
1092
|
declare abstract class RuntimePlugin<T extends PluginOptions = PluginOptions> extends PluginCommon<T, CommandKitPluginRuntime> {
|
|
1041
1093
|
readonly type = PluginType.Runtime;
|
|
1094
|
+
readonly preload: Set<string>;
|
|
1042
1095
|
/**
|
|
1043
1096
|
* Called before commands are loaded
|
|
1044
1097
|
*/
|
|
@@ -1426,6 +1479,11 @@ declare class CommandKitPluginRuntime {
|
|
|
1426
1479
|
* @param plugin The plugin to be fetched.
|
|
1427
1480
|
*/
|
|
1428
1481
|
get<T extends Constructable<any>>(plugin: T): InstanceType<T> | null;
|
|
1482
|
+
/**
|
|
1483
|
+
* Pre-loads the specified entrypoints for the given plugin.
|
|
1484
|
+
* @param plugin The plugin to pre-load.
|
|
1485
|
+
*/
|
|
1486
|
+
preload(plugin: RuntimePlugin): Promise<void>;
|
|
1429
1487
|
/**
|
|
1430
1488
|
* Soft registers a plugin in the runtime.
|
|
1431
1489
|
* @param plugin The plugin to be registered.
|
|
@@ -1864,6 +1922,11 @@ interface CommandKitConfig {
|
|
|
1864
1922
|
* @default false
|
|
1865
1923
|
*/
|
|
1866
1924
|
disablePrefixCommands?: boolean;
|
|
1925
|
+
/**
|
|
1926
|
+
* Whether or not to disable the built-in permissions middleware. This only affects `botPermissions` and `userPermissions` in the command metadata.
|
|
1927
|
+
* @default false
|
|
1928
|
+
*/
|
|
1929
|
+
disablePermissionsMiddleware?: boolean;
|
|
1867
1930
|
/**
|
|
1868
1931
|
* Whether or not to show a warning when a prefix command is not found. This only affects development mode.
|
|
1869
1932
|
* @default true
|
|
@@ -2179,5 +2242,5 @@ declare class AnalyticsEngine {
|
|
|
2179
2242
|
track(event: AnalyticsEvent): Promise<void>;
|
|
2180
2243
|
}
|
|
2181
2244
|
//#endregion
|
|
2182
|
-
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, 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, 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 };
|
|
2183
|
-
//# sourceMappingURL=analytics-engine-
|
|
2245
|
+
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 };
|
|
2246
|
+
//# sourceMappingURL=analytics-engine-CtMbeudW.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppCommandRunner, RunCommandOptions } from "../../analytics-engine-
|
|
1
|
+
import { AppCommandRunner, RunCommandOptions } from "../../analytics-engine-CtMbeudW.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
4
|
import "../../ModalKit-Btz58KYn.js";
|
|
@@ -23,7 +23,7 @@ import "../../text-display-DRw3r_lK.js";
|
|
|
23
23
|
import "../../index-DSBMRX9A.js";
|
|
24
24
|
import "../../index-DdqikUQD.js";
|
|
25
25
|
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-
|
|
26
|
+
import "../../signals-SHg7J1U_.js";
|
|
27
27
|
import "../../helpers-Wg6P5fRQ.js";
|
|
28
28
|
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
29
|
import "../../EventsRouter-BacqK6z3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
|
-
require('../../error-codes-
|
|
4
|
-
const require_commandkit = require('../../commandkit-
|
|
3
|
+
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
+
const require_commandkit = require('../../commandkit-BPtNCbV8.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-vnMIelAE.js');
|
|
7
7
|
require('../../container-z621KfH5.js');
|
|
@@ -17,16 +17,16 @@ require('../../EventInterceptor-CQ4PBpBJ.js');
|
|
|
17
17
|
require('../../constants-B5_Ta7PR.js');
|
|
18
18
|
require('../../PluginCommon-Di1xIa8d.js');
|
|
19
19
|
require('../../CompilerPlugin-CjoZAAR8.js');
|
|
20
|
-
require('../../RuntimePlugin-
|
|
20
|
+
require('../../RuntimePlugin-eTdFJwGd.js');
|
|
21
21
|
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../
|
|
23
|
-
require('../../
|
|
24
|
-
require('../../
|
|
22
|
+
require('../../resolve-file-url-DYjaxg_S.js');
|
|
23
|
+
require('../../runtime-DB9CiPfe.js');
|
|
24
|
+
require('../../utils-KsNof0Xz.js');
|
|
25
25
|
require('../../types-package-DrnIdWLg.js');
|
|
26
|
-
require('../../
|
|
27
|
-
require('../../
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../MessageCommandParser-
|
|
26
|
+
require('../../constants-DxfYtA6t.js');
|
|
27
|
+
require('../../EventWorkerContext-TZIKxVCu.js');
|
|
28
|
+
require('../../signals-r7qPAvOR.js');
|
|
29
|
+
require('../../MessageCommandParser-TPEPhjvx.js');
|
|
30
30
|
require('../../CommandsRouter-tMAivEfv.js');
|
|
31
31
|
require('../../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../../router-DHnFRADH.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CtMbeudW.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
4
|
import "../../ModalKit-Btz58KYn.js";
|
|
@@ -23,7 +23,7 @@ import "../../text-display-DRw3r_lK.js";
|
|
|
23
23
|
import "../../index-DSBMRX9A.js";
|
|
24
24
|
import "../../index-DdqikUQD.js";
|
|
25
25
|
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-
|
|
26
|
+
import "../../signals-SHg7J1U_.js";
|
|
27
27
|
import "../../helpers-Wg6P5fRQ.js";
|
|
28
28
|
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
29
|
import "../../EventsRouter-BacqK6z3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
|
-
require('../../error-codes-
|
|
4
|
-
const require_commandkit = require('../../commandkit-
|
|
3
|
+
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
+
const require_commandkit = require('../../commandkit-BPtNCbV8.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-vnMIelAE.js');
|
|
7
7
|
require('../../container-z621KfH5.js');
|
|
@@ -17,16 +17,16 @@ require('../../EventInterceptor-CQ4PBpBJ.js');
|
|
|
17
17
|
require('../../constants-B5_Ta7PR.js');
|
|
18
18
|
require('../../PluginCommon-Di1xIa8d.js');
|
|
19
19
|
require('../../CompilerPlugin-CjoZAAR8.js');
|
|
20
|
-
require('../../RuntimePlugin-
|
|
20
|
+
require('../../RuntimePlugin-eTdFJwGd.js');
|
|
21
21
|
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../
|
|
23
|
-
require('../../
|
|
24
|
-
require('../../
|
|
22
|
+
require('../../resolve-file-url-DYjaxg_S.js');
|
|
23
|
+
require('../../runtime-DB9CiPfe.js');
|
|
24
|
+
require('../../utils-KsNof0Xz.js');
|
|
25
25
|
require('../../types-package-DrnIdWLg.js');
|
|
26
|
-
require('../../
|
|
27
|
-
require('../../
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../MessageCommandParser-
|
|
26
|
+
require('../../constants-DxfYtA6t.js');
|
|
27
|
+
require('../../EventWorkerContext-TZIKxVCu.js');
|
|
28
|
+
require('../../signals-r7qPAvOR.js');
|
|
29
|
+
require('../../MessageCommandParser-TPEPhjvx.js');
|
|
30
30
|
require('../../CommandsRouter-tMAivEfv.js');
|
|
31
31
|
require('../../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../../router-DHnFRADH.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('../../error-codes-
|
|
2
|
-
const require_MessageCommandParser = require('../../MessageCommandParser-
|
|
1
|
+
require('../../error-codes-Ds0bnPvT.js');
|
|
2
|
+
const require_MessageCommandParser = require('../../MessageCommandParser-TPEPhjvx.js');
|
|
3
3
|
|
|
4
4
|
exports.MessageCommandOptions = require_MessageCommandParser.MessageCommandOptions;
|
|
5
5
|
exports.MessageCommandParser = require_MessageCommandParser.MessageCommandParser;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../analytics-engine-
|
|
1
|
+
import "../../analytics-engine-CtMbeudW.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
4
|
import "../../ModalKit-Btz58KYn.js";
|
|
@@ -23,11 +23,11 @@ import "../../text-display-DRw3r_lK.js";
|
|
|
23
23
|
import "../../index-DSBMRX9A.js";
|
|
24
24
|
import "../../index-DdqikUQD.js";
|
|
25
25
|
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-
|
|
26
|
+
import "../../signals-SHg7J1U_.js";
|
|
27
27
|
import "../../helpers-Wg6P5fRQ.js";
|
|
28
28
|
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
29
|
import "../../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../../index-DKcmsWXw.js";
|
|
31
31
|
import "../../constants-MKu-Q1jh.js";
|
|
32
|
-
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-
|
|
32
|
+
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-D9frVhVe.js";
|
|
33
33
|
export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_EventWorkerContext = require('../../EventWorkerContext-
|
|
1
|
+
const require_EventWorkerContext = require('../../EventWorkerContext-TZIKxVCu.js');
|
|
2
2
|
|
|
3
3
|
exports.eventWorkerContext = require_EventWorkerContext.eventWorkerContext;
|
|
4
4
|
exports.getEventWorkerContext = require_EventWorkerContext.getEventWorkerContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppCommand, AppCommandHandler, AppCommandNative, CommandBuilderLike, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandTypeData, CustomAppCommandProps, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../analytics-engine-
|
|
1
|
+
import { AppCommand, AppCommandHandler, AppCommandNative, CommandBuilderLike, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandTypeData, CustomAppCommandProps, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../analytics-engine-CtMbeudW.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
4
|
import "../../ModalKit-Btz58KYn.js";
|
|
@@ -23,7 +23,7 @@ import "../../text-display-DRw3r_lK.js";
|
|
|
23
23
|
import "../../index-DSBMRX9A.js";
|
|
24
24
|
import "../../index-DdqikUQD.js";
|
|
25
25
|
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-
|
|
26
|
+
import "../../signals-SHg7J1U_.js";
|
|
27
27
|
import "../../helpers-Wg6P5fRQ.js";
|
|
28
28
|
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
29
|
import "../../EventsRouter-BacqK6z3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
|
-
require('../../error-codes-
|
|
4
|
-
const require_commandkit = require('../../commandkit-
|
|
3
|
+
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
+
const require_commandkit = require('../../commandkit-BPtNCbV8.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-vnMIelAE.js');
|
|
7
7
|
require('../../container-z621KfH5.js');
|
|
@@ -17,16 +17,16 @@ require('../../EventInterceptor-CQ4PBpBJ.js');
|
|
|
17
17
|
require('../../constants-B5_Ta7PR.js');
|
|
18
18
|
require('../../PluginCommon-Di1xIa8d.js');
|
|
19
19
|
require('../../CompilerPlugin-CjoZAAR8.js');
|
|
20
|
-
require('../../RuntimePlugin-
|
|
20
|
+
require('../../RuntimePlugin-eTdFJwGd.js');
|
|
21
21
|
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../
|
|
23
|
-
require('../../
|
|
24
|
-
require('../../
|
|
22
|
+
require('../../resolve-file-url-DYjaxg_S.js');
|
|
23
|
+
require('../../runtime-DB9CiPfe.js');
|
|
24
|
+
require('../../utils-KsNof0Xz.js');
|
|
25
25
|
require('../../types-package-DrnIdWLg.js');
|
|
26
|
-
require('../../
|
|
27
|
-
require('../../
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../MessageCommandParser-
|
|
26
|
+
require('../../constants-DxfYtA6t.js');
|
|
27
|
+
require('../../EventWorkerContext-TZIKxVCu.js');
|
|
28
|
+
require('../../signals-r7qPAvOR.js');
|
|
29
|
+
require('../../MessageCommandParser-TPEPhjvx.js');
|
|
30
30
|
require('../../CommandsRouter-tMAivEfv.js');
|
|
31
31
|
require('../../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../../router-DHnFRADH.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../analytics-engine-
|
|
1
|
+
import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../analytics-engine-CtMbeudW.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
4
|
import "../../ModalKit-Btz58KYn.js";
|
|
@@ -23,7 +23,7 @@ import "../../text-display-DRw3r_lK.js";
|
|
|
23
23
|
import "../../index-DSBMRX9A.js";
|
|
24
24
|
import "../../index-DdqikUQD.js";
|
|
25
25
|
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-
|
|
26
|
+
import "../../signals-SHg7J1U_.js";
|
|
27
27
|
import "../../helpers-Wg6P5fRQ.js";
|
|
28
28
|
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
29
|
import "../../EventsRouter-BacqK6z3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
|
-
require('../../error-codes-
|
|
4
|
-
const require_commandkit = require('../../commandkit-
|
|
3
|
+
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
+
const require_commandkit = require('../../commandkit-BPtNCbV8.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-vnMIelAE.js');
|
|
7
7
|
require('../../container-z621KfH5.js');
|
|
@@ -17,16 +17,16 @@ require('../../EventInterceptor-CQ4PBpBJ.js');
|
|
|
17
17
|
require('../../constants-B5_Ta7PR.js');
|
|
18
18
|
require('../../PluginCommon-Di1xIa8d.js');
|
|
19
19
|
require('../../CompilerPlugin-CjoZAAR8.js');
|
|
20
|
-
require('../../RuntimePlugin-
|
|
20
|
+
require('../../RuntimePlugin-eTdFJwGd.js');
|
|
21
21
|
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../
|
|
23
|
-
require('../../
|
|
24
|
-
require('../../
|
|
22
|
+
require('../../resolve-file-url-DYjaxg_S.js');
|
|
23
|
+
require('../../runtime-DB9CiPfe.js');
|
|
24
|
+
require('../../utils-KsNof0Xz.js');
|
|
25
25
|
require('../../types-package-DrnIdWLg.js');
|
|
26
|
-
require('../../
|
|
27
|
-
require('../../
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../MessageCommandParser-
|
|
26
|
+
require('../../constants-DxfYtA6t.js');
|
|
27
|
+
require('../../EventWorkerContext-TZIKxVCu.js');
|
|
28
|
+
require('../../signals-r7qPAvOR.js');
|
|
29
|
+
require('../../MessageCommandParser-TPEPhjvx.js');
|
|
30
30
|
require('../../CommandsRouter-tMAivEfv.js');
|
|
31
31
|
require('../../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../../router-DHnFRADH.js');
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyCommandExecute, AppCommand, AppCommandHandler, AppCommandNative, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandRegistrar, CommandTypeData, Context, ContextParameters, CustomAppCommandProps, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../analytics-engine-
|
|
1
|
+
import { AnyCommandExecute, AppCommand, AppCommandHandler, AppCommandNative, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandRegistrar, CommandTypeData, Context, ContextParameters, CustomAppCommandProps, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../analytics-engine-CtMbeudW.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-C7r7RPNf.js";
|
|
4
4
|
import "../ModalKit-Btz58KYn.js";
|
|
@@ -23,10 +23,10 @@ import "../text-display-DRw3r_lK.js";
|
|
|
23
23
|
import "../index-DSBMRX9A.js";
|
|
24
24
|
import "../index-DdqikUQD.js";
|
|
25
25
|
import { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand } from "../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import {
|
|
26
|
+
import { redirect, rethrow, stopEvents, stopMiddlewares } from "../signals-SHg7J1U_.js";
|
|
27
27
|
import { CommandSource, isInteractionSource, isMessageSource } from "../helpers-Wg6P5fRQ.js";
|
|
28
28
|
import "../CommandsRouter-CoOA7hkf.js";
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-DKcmsWXw.js";
|
|
31
31
|
import "../constants-MKu-Q1jh.js";
|
|
32
|
-
export { AnyCommandExecute, AppCommand, AppCommandHandler, AppCommandNative, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandRegistrar, CommandSource, CommandTypeData, Context, ContextParameters, CustomAppCommandProps, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, ParsedMessageCommand, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext,
|
|
32
|
+
export { AnyCommandExecute, AppCommand, AppCommandHandler, AppCommandNative, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandRegistrar, CommandSource, CommandTypeData, Context, ContextParameters, CustomAppCommandProps, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, ParsedMessageCommand, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, isInteractionSource, isMessageSource, redirect, rethrow, stopEvents, stopMiddlewares };
|
package/dist/app/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../ActionRow-CmTHbo2t.js');
|
|
3
|
-
require('../error-codes-
|
|
4
|
-
const require_commandkit = require('../commandkit-
|
|
3
|
+
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
+
const require_commandkit = require('../commandkit-BPtNCbV8.js');
|
|
5
5
|
require('../common-CcfjYnPG.js');
|
|
6
6
|
require('../common-vnMIelAE.js');
|
|
7
7
|
require('../container-z621KfH5.js');
|
|
@@ -17,16 +17,16 @@ require('../EventInterceptor-CQ4PBpBJ.js');
|
|
|
17
17
|
require('../constants-B5_Ta7PR.js');
|
|
18
18
|
require('../PluginCommon-Di1xIa8d.js');
|
|
19
19
|
require('../CompilerPlugin-CjoZAAR8.js');
|
|
20
|
-
require('../RuntimePlugin-
|
|
20
|
+
require('../RuntimePlugin-eTdFJwGd.js');
|
|
21
21
|
require('../types-q0Nm882H.js');
|
|
22
|
-
require('../
|
|
23
|
-
require('../
|
|
24
|
-
require('../
|
|
22
|
+
require('../resolve-file-url-DYjaxg_S.js');
|
|
23
|
+
require('../runtime-DB9CiPfe.js');
|
|
24
|
+
require('../utils-KsNof0Xz.js');
|
|
25
25
|
require('../types-package-DrnIdWLg.js');
|
|
26
|
-
require('../
|
|
27
|
-
|
|
28
|
-
require('../
|
|
29
|
-
const require_MessageCommandParser = require('../MessageCommandParser-
|
|
26
|
+
require('../constants-DxfYtA6t.js');
|
|
27
|
+
require('../EventWorkerContext-TZIKxVCu.js');
|
|
28
|
+
const require_signals = require('../signals-r7qPAvOR.js');
|
|
29
|
+
const require_MessageCommandParser = require('../MessageCommandParser-TPEPhjvx.js');
|
|
30
30
|
require('../CommandsRouter-tMAivEfv.js');
|
|
31
31
|
require('../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../router-DHnFRADH.js');
|
|
@@ -43,9 +43,9 @@ exports.Context = require_commandkit.Context;
|
|
|
43
43
|
exports.MessageCommandOptions = require_MessageCommandParser.MessageCommandOptions;
|
|
44
44
|
exports.MessageCommandParser = require_MessageCommandParser.MessageCommandParser;
|
|
45
45
|
exports.MiddlewareContext = require_commandkit.MiddlewareContext;
|
|
46
|
-
exports.exitMiddleware = require_signals.exitMiddleware;
|
|
47
46
|
exports.isInteractionSource = require_helpers.isInteractionSource;
|
|
48
47
|
exports.isMessageSource = require_helpers.isMessageSource;
|
|
49
48
|
exports.redirect = require_signals.redirect;
|
|
50
49
|
exports.rethrow = require_signals.rethrow;
|
|
51
|
-
exports.stopEvents = require_signals.stopEvents;
|
|
50
|
+
exports.stopEvents = require_signals.stopEvents;
|
|
51
|
+
exports.stopMiddlewares = require_signals.stopMiddlewares;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { redirect, rethrow, stopEvents, stopMiddlewares } from "../../signals-SHg7J1U_.js";
|
|
2
|
+
export { redirect, rethrow, stopEvents, stopMiddlewares };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require('../../error-codes-
|
|
2
|
-
require('../../EventWorkerContext-
|
|
3
|
-
const require_signals = require('../../signals-
|
|
1
|
+
require('../../error-codes-Ds0bnPvT.js');
|
|
2
|
+
require('../../EventWorkerContext-TZIKxVCu.js');
|
|
3
|
+
const require_signals = require('../../signals-r7qPAvOR.js');
|
|
4
4
|
|
|
5
|
-
exports.exitMiddleware = require_signals.exitMiddleware;
|
|
6
5
|
exports.redirect = require_signals.redirect;
|
|
7
6
|
exports.rethrow = require_signals.rethrow;
|
|
8
|
-
exports.stopEvents = require_signals.stopEvents;
|
|
7
|
+
exports.stopEvents = require_signals.stopEvents;
|
|
8
|
+
exports.stopMiddlewares = require_signals.stopMiddlewares;
|