@wolfstar/http-framework 3.1.4 → 3.2.0-next-20260827153802
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.d.ts +265 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +169 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -2353,6 +2353,270 @@ declare class StringIdParser implements IIdParser {
|
|
|
2353
2353
|
run(customId: string): IdParserRead | null;
|
|
2354
2354
|
}
|
|
2355
2355
|
//#endregion
|
|
2356
|
+
//#region src/lib/errors/UserError.d.ts
|
|
2357
|
+
/**
|
|
2358
|
+
* The UserError class to be thrown and emitted by the pieces of the framework.
|
|
2359
|
+
*
|
|
2360
|
+
* @remarks
|
|
2361
|
+
* This class is the root of every framework-thrown error, allowing consumers to distinguish
|
|
2362
|
+
* errors that are meant to be shown to the user from unexpected, internal ones.
|
|
2363
|
+
*
|
|
2364
|
+
* @property name This will be `'UserError'` and can be used to distinguish the type of error when any error gets thrown.
|
|
2365
|
+
* @since 3.2.0
|
|
2366
|
+
* @example
|
|
2367
|
+
* ```typescript
|
|
2368
|
+
* throw new UserError({
|
|
2369
|
+
* identifier: Identifiers.ArgumentIntegerTooSmall,
|
|
2370
|
+
* message: 'The number you provided is too small.',
|
|
2371
|
+
* context: { received: 2, minimum: 3 }
|
|
2372
|
+
* });
|
|
2373
|
+
* ```
|
|
2374
|
+
*/
|
|
2375
|
+
declare class UserError extends Error {
|
|
2376
|
+
/**
|
|
2377
|
+
* An identifier, useful to localize emitted errors.
|
|
2378
|
+
* @since 3.2.0
|
|
2379
|
+
*/
|
|
2380
|
+
readonly identifier: string;
|
|
2381
|
+
/**
|
|
2382
|
+
* User-provided context.
|
|
2383
|
+
* @since 3.2.0
|
|
2384
|
+
*/
|
|
2385
|
+
readonly context: unknown;
|
|
2386
|
+
/**
|
|
2387
|
+
* Constructs an UserError.
|
|
2388
|
+
* @param options The UserError options
|
|
2389
|
+
*/
|
|
2390
|
+
constructor(options: UserError.Options);
|
|
2391
|
+
get name(): string;
|
|
2392
|
+
}
|
|
2393
|
+
declare namespace UserError {
|
|
2394
|
+
/**
|
|
2395
|
+
* The options for {@link UserError}.
|
|
2396
|
+
* @since 3.2.0
|
|
2397
|
+
*/
|
|
2398
|
+
interface Options {
|
|
2399
|
+
/**
|
|
2400
|
+
* The identifier for this error.
|
|
2401
|
+
* @since 3.2.0
|
|
2402
|
+
*/
|
|
2403
|
+
identifier: string;
|
|
2404
|
+
/**
|
|
2405
|
+
* The message to be passed to the Error constructor.
|
|
2406
|
+
* @since 3.2.0
|
|
2407
|
+
*/
|
|
2408
|
+
message?: string;
|
|
2409
|
+
/**
|
|
2410
|
+
* The extra context to provide more information about this error.
|
|
2411
|
+
* @since 3.2.0
|
|
2412
|
+
* @default null
|
|
2413
|
+
*/
|
|
2414
|
+
context?: unknown;
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
//#endregion
|
|
2418
|
+
//#region src/lib/errors/ArgumentError.d.ts
|
|
2419
|
+
/**
|
|
2420
|
+
* Errors thrown while resolving the options (arguments) of an interaction.
|
|
2421
|
+
*
|
|
2422
|
+
* @property name This will be `'ArgumentError'` and can be used to distinguish the type of error when any error gets thrown.
|
|
2423
|
+
* @since 3.2.0
|
|
2424
|
+
* @example
|
|
2425
|
+
* ```typescript
|
|
2426
|
+
* throw new ArgumentError({
|
|
2427
|
+
* argument: 'amount',
|
|
2428
|
+
* parameter: interaction.options.getInteger('amount'),
|
|
2429
|
+
* identifier: Identifiers.ArgumentIntegerTooSmall,
|
|
2430
|
+
* message: 'The amount must be at least 1.',
|
|
2431
|
+
* context: { minimum: 1 }
|
|
2432
|
+
* });
|
|
2433
|
+
* ```
|
|
2434
|
+
*/
|
|
2435
|
+
declare class ArgumentError<T = unknown> extends UserError {
|
|
2436
|
+
/**
|
|
2437
|
+
* The name of the option that caused the error.
|
|
2438
|
+
* @since 3.2.0
|
|
2439
|
+
*/
|
|
2440
|
+
readonly argument: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* The type of the option that caused the error, if known.
|
|
2443
|
+
* @since 3.2.0
|
|
2444
|
+
*/
|
|
2445
|
+
readonly type: ApplicationCommandOptionType | null;
|
|
2446
|
+
/**
|
|
2447
|
+
* The value that failed to be resolved.
|
|
2448
|
+
* @since 3.2.0
|
|
2449
|
+
*/
|
|
2450
|
+
readonly parameter: T;
|
|
2451
|
+
constructor(options: ArgumentError.Options<T>);
|
|
2452
|
+
get name(): string;
|
|
2453
|
+
}
|
|
2454
|
+
declare namespace ArgumentError {
|
|
2455
|
+
/**
|
|
2456
|
+
* The options for {@link ArgumentError}.
|
|
2457
|
+
* @since 3.2.0
|
|
2458
|
+
*/
|
|
2459
|
+
interface Options<T> extends Omit<UserError.Options, 'identifier'> {
|
|
2460
|
+
/**
|
|
2461
|
+
* The name of the option that caused the error.
|
|
2462
|
+
* @since 3.2.0
|
|
2463
|
+
*/
|
|
2464
|
+
argument: string;
|
|
2465
|
+
/**
|
|
2466
|
+
* The type of the option that caused the error.
|
|
2467
|
+
* @since 3.2.0
|
|
2468
|
+
* @default null
|
|
2469
|
+
*/
|
|
2470
|
+
type?: ApplicationCommandOptionType | null;
|
|
2471
|
+
/**
|
|
2472
|
+
* The value that failed to be resolved.
|
|
2473
|
+
* @since 3.2.0
|
|
2474
|
+
*/
|
|
2475
|
+
parameter: T;
|
|
2476
|
+
/**
|
|
2477
|
+
* The identifier.
|
|
2478
|
+
* @since 3.2.0
|
|
2479
|
+
* @default argument
|
|
2480
|
+
*/
|
|
2481
|
+
identifier?: string;
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
//#endregion
|
|
2485
|
+
//#region src/lib/errors/ChatInputRouterError.d.ts
|
|
2486
|
+
/**
|
|
2487
|
+
* Represents an error that is thrown when a {@link ChatInputRouter} encounters an error.
|
|
2488
|
+
* @since 2.0.0
|
|
2489
|
+
*/
|
|
2490
|
+
declare class ChatInputRouterError<Options extends Command.Options = Command.Options> extends UserError {
|
|
2491
|
+
/**
|
|
2492
|
+
* The key identifying the error.
|
|
2493
|
+
* @since 2.0.0
|
|
2494
|
+
*/
|
|
2495
|
+
readonly key: keyof typeof ChatInputRouterErrors;
|
|
2496
|
+
/**
|
|
2497
|
+
* The command that was being processed when the error was thrown.
|
|
2498
|
+
* @since 2.0.0
|
|
2499
|
+
*/
|
|
2500
|
+
readonly command: Command<Options>;
|
|
2501
|
+
/**
|
|
2502
|
+
* The subcommand group that was being processed when the error was thrown, if any.
|
|
2503
|
+
* @since 2.0.0
|
|
2504
|
+
*/
|
|
2505
|
+
readonly group: APIApplicationCommandSubcommandGroupOption | null;
|
|
2506
|
+
/**
|
|
2507
|
+
* The subcommand that was being processed when the error was thrown, if any.
|
|
2508
|
+
* @since 2.0.0
|
|
2509
|
+
*/
|
|
2510
|
+
readonly subcommand: APIApplicationCommandSubcommandOption | null;
|
|
2511
|
+
constructor(key: keyof typeof ChatInputRouterErrors, command: Command<Options>, group?: APIApplicationCommandSubcommandGroupOption | null, subcommand?: APIApplicationCommandSubcommandOption | null);
|
|
2512
|
+
/**
|
|
2513
|
+
* The path of the command that was being processed when the error was thrown.
|
|
2514
|
+
* @since 2.0.0
|
|
2515
|
+
*/
|
|
2516
|
+
get path(): string;
|
|
2517
|
+
get name(): string;
|
|
2518
|
+
}
|
|
2519
|
+
declare const ChatInputRouterErrors: {
|
|
2520
|
+
readonly DuplicatedSubcommandGroup: (command: string, subcommandGroup: string) => string;
|
|
2521
|
+
readonly DuplicatedSubcommand: (command: string, subcommandGroup: string, subcommand: string) => string;
|
|
2522
|
+
readonly SubcommandGroupLinkInvalid: (command: string, subcommandGroup: string) => string;
|
|
2523
|
+
readonly SubcommandLinkInvalid: (command: string, subcommandGroup: string, subcommand: string) => string;
|
|
2524
|
+
};
|
|
2525
|
+
//#endregion
|
|
2526
|
+
//#region src/lib/errors/Identifiers.d.ts
|
|
2527
|
+
/**
|
|
2528
|
+
* The identifiers of the errors the framework may throw, useful to localize them.
|
|
2529
|
+
* @since 3.2.0
|
|
2530
|
+
*/
|
|
2531
|
+
declare enum Identifiers {
|
|
2532
|
+
ArgumentMissing = "argumentMissing",
|
|
2533
|
+
ArgumentUnavailable = "argumentUnavailable",
|
|
2534
|
+
ArgumentAttachmentError = "attachmentError",
|
|
2535
|
+
ArgumentBooleanError = "booleanError",
|
|
2536
|
+
ArgumentChannelError = "channelError",
|
|
2537
|
+
ArgumentEnumEmptyError = "enumEmptyError",
|
|
2538
|
+
ArgumentEnumError = "enumError",
|
|
2539
|
+
ArgumentIntegerError = "integerError",
|
|
2540
|
+
ArgumentIntegerTooLarge = "integerTooLarge",
|
|
2541
|
+
ArgumentIntegerTooSmall = "integerTooSmall",
|
|
2542
|
+
ArgumentMemberError = "memberError",
|
|
2543
|
+
ArgumentMentionableError = "mentionableError",
|
|
2544
|
+
ArgumentMessageError = "messageError",
|
|
2545
|
+
ArgumentNumberError = "numberError",
|
|
2546
|
+
ArgumentNumberTooLarge = "numberTooLarge",
|
|
2547
|
+
ArgumentNumberTooSmall = "numberTooSmall",
|
|
2548
|
+
ArgumentRoleError = "roleError",
|
|
2549
|
+
ArgumentStringTooLong = "stringTooLong",
|
|
2550
|
+
ArgumentStringTooShort = "stringTooShort",
|
|
2551
|
+
ArgumentUserError = "userError",
|
|
2552
|
+
CommandDisabled = "commandDisabled",
|
|
2553
|
+
CommandNameMissing = "commandNameMissing",
|
|
2554
|
+
CommandNameUnknown = "commandNameUnknown",
|
|
2555
|
+
CommandMethodUnknown = "commandMethodUnknown",
|
|
2556
|
+
InteractionHandlerNameInvalid = "interactionHandlerNameInvalid",
|
|
2557
|
+
InteractionHandlerNameUnknown = "interactionHandlerNameUnknown",
|
|
2558
|
+
PreconditionClientPermissions = "preconditionClientPermissions",
|
|
2559
|
+
PreconditionClientPermissionsNoPermissions = "preconditionClientPermissionsNoPermissions",
|
|
2560
|
+
PreconditionCooldown = "preconditionCooldown",
|
|
2561
|
+
PreconditionGuildIds = "preconditionGuildIds",
|
|
2562
|
+
PreconditionNSFW = "preconditionNsfw",
|
|
2563
|
+
PreconditionRunIn = "preconditionRunIn",
|
|
2564
|
+
PreconditionUnavailable = "preconditionUnavailable",
|
|
2565
|
+
PreconditionUserPermissions = "preconditionUserPermissions",
|
|
2566
|
+
PreconditionUserPermissionsNoPermissions = "preconditionUserPermissionsNoPermissions",
|
|
2567
|
+
ChatInputRouterDuplicatedSubcommand = "chatInputRouterDuplicatedSubcommand",
|
|
2568
|
+
ChatInputRouterDuplicatedSubcommandGroup = "chatInputRouterDuplicatedSubcommandGroup",
|
|
2569
|
+
ChatInputRouterSubcommandGroupLinkInvalid = "chatInputRouterSubcommandGroupLinkInvalid",
|
|
2570
|
+
ChatInputRouterSubcommandLinkInvalid = "chatInputRouterSubcommandLinkInvalid"
|
|
2571
|
+
}
|
|
2572
|
+
//#endregion
|
|
2573
|
+
//#region src/lib/errors/PreconditionError.d.ts
|
|
2574
|
+
/**
|
|
2575
|
+
* Errors thrown by preconditions, that is, any check that runs before a command or an interaction
|
|
2576
|
+
* handler is executed, such as the guild restrictions applied by
|
|
2577
|
+
* {@link RestrictGuildIds}.
|
|
2578
|
+
*
|
|
2579
|
+
* @property name This will be `'PreconditionError'` and can be used to distinguish the type of error when any error gets thrown.
|
|
2580
|
+
* @since 3.2.0
|
|
2581
|
+
* @example
|
|
2582
|
+
* ```typescript
|
|
2583
|
+
* throw new PreconditionError({
|
|
2584
|
+
* precondition: 'GuildIds',
|
|
2585
|
+
* identifier: Identifiers.PreconditionGuildIds,
|
|
2586
|
+
* message: 'This command can only be used in specific guilds.',
|
|
2587
|
+
* context: { guildIds: ['737141877803057244'] }
|
|
2588
|
+
* });
|
|
2589
|
+
* ```
|
|
2590
|
+
*/
|
|
2591
|
+
declare class PreconditionError extends UserError {
|
|
2592
|
+
/**
|
|
2593
|
+
* The name of the precondition that caused the error.
|
|
2594
|
+
* @since 3.2.0
|
|
2595
|
+
*/
|
|
2596
|
+
readonly precondition: string;
|
|
2597
|
+
constructor(options: PreconditionError.Options);
|
|
2598
|
+
get name(): string;
|
|
2599
|
+
}
|
|
2600
|
+
declare namespace PreconditionError {
|
|
2601
|
+
/**
|
|
2602
|
+
* The options for {@link PreconditionError}.
|
|
2603
|
+
* @since 3.2.0
|
|
2604
|
+
*/
|
|
2605
|
+
interface Options extends Omit<UserError.Options, 'identifier'> {
|
|
2606
|
+
/**
|
|
2607
|
+
* The name of the precondition that caused the error.
|
|
2608
|
+
* @since 3.2.0
|
|
2609
|
+
*/
|
|
2610
|
+
precondition: string;
|
|
2611
|
+
/**
|
|
2612
|
+
* The identifier.
|
|
2613
|
+
* @since 3.2.0
|
|
2614
|
+
* @default precondition
|
|
2615
|
+
*/
|
|
2616
|
+
identifier?: string;
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
//#endregion
|
|
2356
2620
|
//#region src/lib/structures/CommandLoaderStrategy.d.ts
|
|
2357
2621
|
/**
|
|
2358
2622
|
* Represents a strategy for loading and unloading commands.
|
|
@@ -2407,5 +2671,5 @@ declare class ListenerLoaderStrategy extends LoaderStrategy<Listener> {
|
|
|
2407
2671
|
onUnload(_store: ListenerStore, piece: Listener): void;
|
|
2408
2672
|
}
|
|
2409
2673
|
//#endregion
|
|
2410
|
-
export { type AbortError, type AddFiles, AliasPiece, type AliasPieceOptions, AliasStore, ApplicationCommandRegistry, ApplicationCommandRegistryEntry, ArgumentTypes, type AsyncDiscordResult, AsyncPluginHooks, AutocompleteInteraction$1 as AutocompleteInteraction, AutocompleteInteractionArguments, AutocompleteResponseData, AutocompleteResponseOptions, BaseCommandInteractionType, BaseInteraction, BaseInteractionType, ChatInputCommandInteraction, Client, ClientEventAutocompleteContext, ClientEventCommandContext, ClientEventInteractionHandlerContext, ClientEvents, ClientOptions, Command, CommandInteraction, CommandLoaderStrategy, CommandRegistry, CommandRouter, CommandStore, CommandStoreRouter, DeferResponseData, DeferResponseOptions, DeferUpdateResult, type DiscordError, type DiscordResult, ExtractedOptions, FollowupOptions, HttpCodes, HttpFrameworkPluginAsyncHook, HttpFrameworkPluginHook, HttpFrameworkPluginHookEntry, IIdParser, IdParserRead, InGuild, Interaction$1 as Interaction, InteractionArguments, InteractionHandler, InteractionHandlerStore, Interactions, ListenOptions, Listener, ListenerLoaderStrategy, ListenerStore, LoadOptions, LoaderError, type LoaderPieceContext, MakeArguments, MappedClientEvents, Message, MessageComponentButtonInteraction, MessageComponentChannelSelectInteraction, MessageComponentInteraction, MessageComponentInteractionType, MessageComponentMentionableSelectInteraction, MessageComponentRoleSelectInteraction, MessageComponentStringSelectInteraction as MessageComponentSelectMenuInteraction, MessageComponentStringSelectInteraction, MessageComponentUserSelectInteraction, MessageContextMenuCommandInteraction, MessageResponseData, MessageResponseOptions, MissingExportsError, ModalResponseData, ModalResponseOptions, ModalSubmitInteraction, type NonPingInteraction, PartialMessage, Piece, type PieceContext, type PieceOptions, Plugin, PluginHook, PluginManager, RegisterCommand, RegisterMessageCommand, RegisterSubcommand, RegisterSubcommandGroup, RegisterUserCommand, RequestAuthPrefix, RestrictGuildIds, Store, type StoreOptions, StoreRegistry, type StoreRegistryEntries, StringIdParser, SyncPluginHooks, TransformedArguments, UpdateData, UpdateOptions, UpdateResponseOptions, UpdateResponseResult, UserContextMenuCommandInteraction, applicationCommandRegistry, container, extractTopLevelOptions, makeInteraction, postInitialization, postListen, preGenericsInitialization, preInitialization, preLoad, restrictedGuildIdRegistry, transformAutocompleteInteraction, transformInteraction, transformMessageInteraction, transformUserInteraction };
|
|
2674
|
+
export { type AbortError, type AddFiles, AliasPiece, type AliasPieceOptions, AliasStore, ApplicationCommandRegistry, ApplicationCommandRegistryEntry, ArgumentError, ArgumentTypes, type AsyncDiscordResult, AsyncPluginHooks, AutocompleteInteraction$1 as AutocompleteInteraction, AutocompleteInteractionArguments, AutocompleteResponseData, AutocompleteResponseOptions, BaseCommandInteractionType, BaseInteraction, BaseInteractionType, ChatInputCommandInteraction, ChatInputRouterError, ChatInputRouterErrors, Client, ClientEventAutocompleteContext, ClientEventCommandContext, ClientEventInteractionHandlerContext, ClientEvents, ClientOptions, Command, CommandInteraction, CommandLoaderStrategy, CommandRegistry, CommandRouter, CommandStore, CommandStoreRouter, DeferResponseData, DeferResponseOptions, DeferUpdateResult, type DiscordError, type DiscordResult, ExtractedOptions, FollowupOptions, HttpCodes, HttpFrameworkPluginAsyncHook, HttpFrameworkPluginHook, HttpFrameworkPluginHookEntry, IIdParser, IdParserRead, Identifiers, InGuild, Interaction$1 as Interaction, InteractionArguments, InteractionHandler, InteractionHandlerStore, Interactions, ListenOptions, Listener, ListenerLoaderStrategy, ListenerStore, LoadOptions, LoaderError, type LoaderPieceContext, MakeArguments, MappedClientEvents, Message, MessageComponentButtonInteraction, MessageComponentChannelSelectInteraction, MessageComponentInteraction, MessageComponentInteractionType, MessageComponentMentionableSelectInteraction, MessageComponentRoleSelectInteraction, MessageComponentStringSelectInteraction as MessageComponentSelectMenuInteraction, MessageComponentStringSelectInteraction, MessageComponentUserSelectInteraction, MessageContextMenuCommandInteraction, MessageResponseData, MessageResponseOptions, MissingExportsError, ModalResponseData, ModalResponseOptions, ModalSubmitInteraction, type NonPingInteraction, PartialMessage, Piece, type PieceContext, type PieceOptions, Plugin, PluginHook, PluginManager, PreconditionError, RegisterCommand, RegisterMessageCommand, RegisterSubcommand, RegisterSubcommandGroup, RegisterUserCommand, RequestAuthPrefix, RestrictGuildIds, Store, type StoreOptions, StoreRegistry, type StoreRegistryEntries, StringIdParser, SyncPluginHooks, TransformedArguments, UpdateData, UpdateOptions, UpdateResponseOptions, UpdateResponseResult, UserContextMenuCommandInteraction, UserError, applicationCommandRegistry, container, extractTopLevelOptions, makeInteraction, postInitialization, postListen, preGenericsInitialization, preInitialization, preLoad, restrictedGuildIdRegistry, transformAutocompleteInteraction, transformInteraction, transformMessageInteraction, transformUserInteraction };
|
|
2411
2675
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/lib/utils/internals.ts","../../src/lib/interactions/resolvers/ChatInputCommandResolver.ts","../../src/lib/interactions/decorators/RegisterCommand.ts","../../src/lib/interactions/resolvers/ContextMenuCommandResolver.ts","../../src/lib/interactions/decorators/RegisterMessageCommand.ts","../../src/lib/interactions/decorators/RegisterSubcommand.ts","../../src/lib/interactions/decorators/RegisterSubcommandGroup.ts","../../src/lib/interactions/decorators/RegisterUserCommand.ts","../../src/lib/interactions/decorators/RestrictGuildIds.ts","../../src/lib/interactions/resolvers/InteractionOptions.ts","../../src/lib/structures/CommandStoreRouter.ts","../../src/lib/structures/CommandStore.ts","../../src/lib/interactions/shared/ApplicationCommandRegistryEntry.ts","../../src/lib/interactions/shared/ApplicationCommandRegistry.ts","../../src/lib/interactions/shared/CommandRegistry.ts","../../src/lib/interactions/utils/util-types.ts","../../src/lib/interactions/structures/common/symbols.ts","../../src/lib/interactions/structures/interactions/base/BaseInteraction.ts","../../src/lib/interactions/structures/interactions/base/common.ts","../../src/lib/interactions/structures/interactions/AutocompleteInteraction.ts","../../src/lib/interactions/structures/interactions/base/CommandInteraction.ts","../../src/lib/interactions/structures/interactions/ChatInputCommandInteraction.ts","../../src/lib/interactions/structures/interactions/base/MessageComponentInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentButtonInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentChannelSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentMentionableSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentRoleSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentStringSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentUserSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageContextMenuCommandInteraction.ts","../../src/lib/interactions/structures/interactions/ModalSubmitInteraction.ts","../../src/lib/interactions/structures/interactions/UserContextMenuCommandInteraction.ts","../../src/lib/interactions/structures/interactions/index.ts","../../src/lib/interactions/structures/Message.ts","../../src/lib/interactions/utils/util.ts","../../src/lib/interactions/router/CommandRouter.ts","../../src/lib/structures/Command.ts","../../src/lib/structures/InteractionHandler.ts","../../src/lib/types/Enums.ts","../../src/lib/ClientEvents.ts","../../src/lib/components/IIdParser.ts","../../src/lib/plugins/symbols.ts","../../src/lib/plugins/Plugin.ts","../../src/lib/plugins/PluginManager.ts","../../src/lib/structures/InteractionHandlerStore.ts","../../src/lib/structures/Listener.ts","../../src/lib/structures/ListenerStore.ts","../../src/lib/utils/security.ts","../../src/lib/Client.ts","../../src/lib/api/HttpCodes.ts","../../src/lib/components/StringIdParser.ts","../../src/lib/structures/CommandLoaderStrategy.ts","../../src/lib/structures/ListenerLoaderStrategy.ts"],"mappings":";;;;;;;;;;;;;KAAY;;;;;;;cCkBC,oCAAoC,cAAc,yBAAyB;;;;;;;;EAYhF,WAAW,MAAM,yBAAyB;;;;;;;;EAY1C,mBAAmB,MAAM,yBAAyB,qBAAqB;;;;;;;;;EAavE,cAAc,MAAM,yBAAyB,gBAAgB,wBAAwB;;;;;;EAUrF,UAAU,yBAAyB;;kBAqM1B;OACJ,wBAAwB,KAAK,2BAA2B,cAAc;OACtE,cACT,0BACE,SAAS,wBAAwB,wBAAwB;OAElD,gCAAgC,KAAK,mCAAmC,cAAc;OACtF,sBACT,kCACE,SAAS,uCAAuC,gCAAgC;OAEzE,2BAA2B,KAAK,8BAA8B,cAAc;OAC5E,iBACT,6BACE,SAAS,kCAAkC,2BAA2B;OAE/D,kBAAkB;OAClB,0BAA0B;OAC1B,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;iBChQlB,gBAAgB,gBAAgB,QAAQ,UAAU,QAAQ,SAAS,MAAM,yBAAyB,eACxF,eAAe,QAAQ;;;;;;;cCdpC,sCAAsC,cAAc,2BAA2B;;;;;;;;;;EAcpF,WAAW,MAAM,2BAA2B,aAAa,MAAM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EAMA;;;;;EAMA;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;;EASA;;;;EAKA;;;;;;;;;;;;EAaA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;EAKA;;;;;;;;EASA;;;;;;;EAQA;;;;;;EAOA;;;;;;;;;;EAWA;;;;;;;;;;;;EAaA;;;;;;;;;;;EAYA;;;;;EAMA;;;;;;EAOA;;;;;EAMA;;;;EAKA;;;;;;;EAQA;;;;;;EAOA;;;;;;;;;;EAWA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;;;;EAQA;;;;;;EAOA;;;;;;;EAQA;;;;;EAMA;;;;;;;;;EAUA;;;;;;;EAQA;;;;;EAMA;;;;;EAMA;;;;EAKA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;;;;;EASA;;;;;EAMA;;;;;;EAOA;;;;;;;EAQA;;;;;EAMA;;;;;;EAOA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;EAKA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;;;;EAQA;;;;cClbY,0BAA0B;EAC/B,IAAI,mBAAmB;;;;;;;;;cCMlB,8BAA8B,eAAe;;;;;;;;;EASzC,OAAO,OAAO,cAAc,OAAO,UAAO,mCAAA;;;;;;;;;EAoB1C,SAAS,OAAO,cAAc,OAAO,UAAO,mCAAA;;;;;;;;;cC1BhD,+BAA+B,eAAe;;;;;;;;;EAS1C,OAAO,QAAQ,eAAe,OAAO;;;;;;;;;EAkBrC,SAAS,QAAQ,eAAe,OAAO"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/lib/utils/internals.ts","../../src/lib/interactions/resolvers/ChatInputCommandResolver.ts","../../src/lib/interactions/decorators/RegisterCommand.ts","../../src/lib/interactions/resolvers/ContextMenuCommandResolver.ts","../../src/lib/interactions/decorators/RegisterMessageCommand.ts","../../src/lib/interactions/decorators/RegisterSubcommand.ts","../../src/lib/interactions/decorators/RegisterSubcommandGroup.ts","../../src/lib/interactions/decorators/RegisterUserCommand.ts","../../src/lib/interactions/decorators/RestrictGuildIds.ts","../../src/lib/interactions/resolvers/InteractionOptions.ts","../../src/lib/structures/CommandStoreRouter.ts","../../src/lib/structures/CommandStore.ts","../../src/lib/interactions/shared/ApplicationCommandRegistryEntry.ts","../../src/lib/interactions/shared/ApplicationCommandRegistry.ts","../../src/lib/interactions/shared/CommandRegistry.ts","../../src/lib/interactions/utils/util-types.ts","../../src/lib/interactions/structures/common/symbols.ts","../../src/lib/interactions/structures/interactions/base/BaseInteraction.ts","../../src/lib/interactions/structures/interactions/base/common.ts","../../src/lib/interactions/structures/interactions/AutocompleteInteraction.ts","../../src/lib/interactions/structures/interactions/base/CommandInteraction.ts","../../src/lib/interactions/structures/interactions/ChatInputCommandInteraction.ts","../../src/lib/interactions/structures/interactions/base/MessageComponentInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentButtonInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentChannelSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentMentionableSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentRoleSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentStringSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageComponentUserSelectInteraction.ts","../../src/lib/interactions/structures/interactions/MessageContextMenuCommandInteraction.ts","../../src/lib/interactions/structures/interactions/ModalSubmitInteraction.ts","../../src/lib/interactions/structures/interactions/UserContextMenuCommandInteraction.ts","../../src/lib/interactions/structures/interactions/index.ts","../../src/lib/interactions/structures/Message.ts","../../src/lib/interactions/utils/util.ts","../../src/lib/interactions/router/CommandRouter.ts","../../src/lib/structures/Command.ts","../../src/lib/structures/InteractionHandler.ts","../../src/lib/types/Enums.ts","../../src/lib/ClientEvents.ts","../../src/lib/components/IIdParser.ts","../../src/lib/plugins/symbols.ts","../../src/lib/plugins/Plugin.ts","../../src/lib/plugins/PluginManager.ts","../../src/lib/structures/InteractionHandlerStore.ts","../../src/lib/structures/Listener.ts","../../src/lib/structures/ListenerStore.ts","../../src/lib/utils/security.ts","../../src/lib/Client.ts","../../src/lib/api/HttpCodes.ts","../../src/lib/components/StringIdParser.ts","../../src/lib/errors/UserError.ts","../../src/lib/errors/ArgumentError.ts","../../src/lib/errors/ChatInputRouterError.ts","../../src/lib/errors/Identifiers.ts","../../src/lib/errors/PreconditionError.ts","../../src/lib/structures/CommandLoaderStrategy.ts","../../src/lib/structures/ListenerLoaderStrategy.ts"],"mappings":";;;;;;;;;;;;;KAAY;;;;;;;cCkBC,oCAAoC,cAAc,yBAAyB;;;;;;;;EAYhF,WAAW,MAAM,yBAAyB;;;;;;;;EAY1C,mBAAmB,MAAM,yBAAyB,qBAAqB;;;;;;;;;EAavE,cAAc,MAAM,yBAAyB,gBAAgB,wBAAwB;;;;;;EAUrF,UAAU,yBAAyB;;kBAqM1B;OACJ,wBAAwB,KAAK,2BAA2B,cAAc;OACtE,cACT,0BACE,SAAS,wBAAwB,wBAAwB;OAElD,gCAAgC,KAAK,mCAAmC,cAAc;OACtF,sBACT,kCACE,SAAS,uCAAuC,gCAAgC;OAEzE,2BAA2B,KAAK,8BAA8B,cAAc;OAC5E,iBACT,6BACE,SAAS,kCAAkC,2BAA2B;OAE/D,kBAAkB;OAClB,0BAA0B;OAC1B,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;iBChQlB,gBAAgB,gBAAgB,QAAQ,UAAU,QAAQ,SAAS,MAAM,yBAAyB,eACxF,eAAe,QAAQ;;;;;;;cCdpC,sCAAsC,cAAc,2BAA2B;;;;;;;;;;EAcpF,WAAW,MAAM,2BAA2B,aAAa,MAAM,wBAAwB;;;;;;EAYvF,UAAU,2BAA2B;;kBAwC5B;OACJ,wBACT,KAAK,6DACL,cAAc;OACL,cACT,0BACE,SAAS,8BAA8B,wBAAwB;OAExD,kBAAkB;;;;;;;;;;;;;;;;;;;;iBChEf,uBAAuB,gBAAgB,QAAQ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AEX,wBAAA,iBAAM,yBAAyB;;;;;;;;aCnErD;EAEX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAIA;EACA;EACA;EACA;EAIA;EACA;EAIA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAIA;EACA;EACA;EACA;;;;;;;;;;;;;;;;;;;;;cCtCY,0BAA0B;;;;;WAKtB;EAEG,YAAA,SAAS,kBAAkB;MAK1B;;kBAKJ;;;;;YAKC,gBAAgB,KAAK,UAAU;;;;;IAK/C;;;;;;IAOA;;;;;;;;;;cC5CW,8BAA8B,eAAe;;;;;;;;;EASzC,OAAO,OAAO,cAAc,OAAO,UAAO,mCAAA;;;;;;;;;EAoB1C,SAAS,OAAO,cAAc,OAAO,UAAO,mCAAA;;;;;;;;;cC1BhD,+BAA+B,eAAe;;;;;;;;;EAS1C,OAAO,QAAQ,eAAe,OAAO;;;;;;;;;EAkBrC,SAAS,QAAQ,eAAe,OAAO"}
|
package/dist/esm/index.js
CHANGED
|
@@ -2686,15 +2686,109 @@ var Message = class extends PartialMessage {
|
|
|
2686
2686
|
}
|
|
2687
2687
|
};
|
|
2688
2688
|
|
|
2689
|
+
//#endregion
|
|
2690
|
+
//#region src/lib/errors/Identifiers.ts
|
|
2691
|
+
/**
|
|
2692
|
+
* The identifiers of the errors the framework may throw, useful to localize them.
|
|
2693
|
+
* @since 3.2.0
|
|
2694
|
+
*/
|
|
2695
|
+
let Identifiers = /* @__PURE__ */ function(Identifiers) {
|
|
2696
|
+
Identifiers["ArgumentMissing"] = "argumentMissing";
|
|
2697
|
+
Identifiers["ArgumentUnavailable"] = "argumentUnavailable";
|
|
2698
|
+
Identifiers["ArgumentAttachmentError"] = "attachmentError";
|
|
2699
|
+
Identifiers["ArgumentBooleanError"] = "booleanError";
|
|
2700
|
+
Identifiers["ArgumentChannelError"] = "channelError";
|
|
2701
|
+
Identifiers["ArgumentEnumEmptyError"] = "enumEmptyError";
|
|
2702
|
+
Identifiers["ArgumentEnumError"] = "enumError";
|
|
2703
|
+
Identifiers["ArgumentIntegerError"] = "integerError";
|
|
2704
|
+
Identifiers["ArgumentIntegerTooLarge"] = "integerTooLarge";
|
|
2705
|
+
Identifiers["ArgumentIntegerTooSmall"] = "integerTooSmall";
|
|
2706
|
+
Identifiers["ArgumentMemberError"] = "memberError";
|
|
2707
|
+
Identifiers["ArgumentMentionableError"] = "mentionableError";
|
|
2708
|
+
Identifiers["ArgumentMessageError"] = "messageError";
|
|
2709
|
+
Identifiers["ArgumentNumberError"] = "numberError";
|
|
2710
|
+
Identifiers["ArgumentNumberTooLarge"] = "numberTooLarge";
|
|
2711
|
+
Identifiers["ArgumentNumberTooSmall"] = "numberTooSmall";
|
|
2712
|
+
Identifiers["ArgumentRoleError"] = "roleError";
|
|
2713
|
+
Identifiers["ArgumentStringTooLong"] = "stringTooLong";
|
|
2714
|
+
Identifiers["ArgumentStringTooShort"] = "stringTooShort";
|
|
2715
|
+
Identifiers["ArgumentUserError"] = "userError";
|
|
2716
|
+
Identifiers["CommandDisabled"] = "commandDisabled";
|
|
2717
|
+
Identifiers["CommandNameMissing"] = "commandNameMissing";
|
|
2718
|
+
Identifiers["CommandNameUnknown"] = "commandNameUnknown";
|
|
2719
|
+
Identifiers["CommandMethodUnknown"] = "commandMethodUnknown";
|
|
2720
|
+
Identifiers["InteractionHandlerNameInvalid"] = "interactionHandlerNameInvalid";
|
|
2721
|
+
Identifiers["InteractionHandlerNameUnknown"] = "interactionHandlerNameUnknown";
|
|
2722
|
+
Identifiers["PreconditionClientPermissions"] = "preconditionClientPermissions";
|
|
2723
|
+
Identifiers["PreconditionClientPermissionsNoPermissions"] = "preconditionClientPermissionsNoPermissions";
|
|
2724
|
+
Identifiers["PreconditionCooldown"] = "preconditionCooldown";
|
|
2725
|
+
Identifiers["PreconditionGuildIds"] = "preconditionGuildIds";
|
|
2726
|
+
Identifiers["PreconditionNSFW"] = "preconditionNsfw";
|
|
2727
|
+
Identifiers["PreconditionRunIn"] = "preconditionRunIn";
|
|
2728
|
+
Identifiers["PreconditionUnavailable"] = "preconditionUnavailable";
|
|
2729
|
+
Identifiers["PreconditionUserPermissions"] = "preconditionUserPermissions";
|
|
2730
|
+
Identifiers["PreconditionUserPermissionsNoPermissions"] = "preconditionUserPermissionsNoPermissions";
|
|
2731
|
+
Identifiers["ChatInputRouterDuplicatedSubcommand"] = "chatInputRouterDuplicatedSubcommand";
|
|
2732
|
+
Identifiers["ChatInputRouterDuplicatedSubcommandGroup"] = "chatInputRouterDuplicatedSubcommandGroup";
|
|
2733
|
+
Identifiers["ChatInputRouterSubcommandGroupLinkInvalid"] = "chatInputRouterSubcommandGroupLinkInvalid";
|
|
2734
|
+
Identifiers["ChatInputRouterSubcommandLinkInvalid"] = "chatInputRouterSubcommandLinkInvalid";
|
|
2735
|
+
return Identifiers;
|
|
2736
|
+
}({});
|
|
2737
|
+
|
|
2738
|
+
//#endregion
|
|
2739
|
+
//#region src/lib/errors/UserError.ts
|
|
2740
|
+
/**
|
|
2741
|
+
* The UserError class to be thrown and emitted by the pieces of the framework.
|
|
2742
|
+
*
|
|
2743
|
+
* @remarks
|
|
2744
|
+
* This class is the root of every framework-thrown error, allowing consumers to distinguish
|
|
2745
|
+
* errors that are meant to be shown to the user from unexpected, internal ones.
|
|
2746
|
+
*
|
|
2747
|
+
* @property name This will be `'UserError'` and can be used to distinguish the type of error when any error gets thrown.
|
|
2748
|
+
* @since 3.2.0
|
|
2749
|
+
* @example
|
|
2750
|
+
* ```typescript
|
|
2751
|
+
* throw new UserError({
|
|
2752
|
+
* identifier: Identifiers.ArgumentIntegerTooSmall,
|
|
2753
|
+
* message: 'The number you provided is too small.',
|
|
2754
|
+
* context: { received: 2, minimum: 3 }
|
|
2755
|
+
* });
|
|
2756
|
+
* ```
|
|
2757
|
+
*/
|
|
2758
|
+
var UserError = class extends Error {
|
|
2759
|
+
/**
|
|
2760
|
+
* Constructs an UserError.
|
|
2761
|
+
* @param options The UserError options
|
|
2762
|
+
*/
|
|
2763
|
+
constructor(options) {
|
|
2764
|
+
super(options.message);
|
|
2765
|
+
_defineProperty(this, "identifier", void 0);
|
|
2766
|
+
_defineProperty(this, "context", void 0);
|
|
2767
|
+
this.identifier = options.identifier;
|
|
2768
|
+
this.context = options.context ?? null;
|
|
2769
|
+
}
|
|
2770
|
+
get name() {
|
|
2771
|
+
return "UserError";
|
|
2772
|
+
}
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2689
2775
|
//#endregion
|
|
2690
2776
|
//#region src/lib/errors/ChatInputRouterError.ts
|
|
2691
2777
|
/**
|
|
2692
2778
|
* Represents an error that is thrown when a {@link ChatInputRouter} encounters an error.
|
|
2693
2779
|
* @since 2.0.0
|
|
2694
2780
|
*/
|
|
2695
|
-
var ChatInputRouterError = class extends
|
|
2781
|
+
var ChatInputRouterError = class extends UserError {
|
|
2696
2782
|
constructor(key, command, group, subcommand) {
|
|
2697
|
-
super(
|
|
2783
|
+
super({
|
|
2784
|
+
identifier: Identifiers[`ChatInputRouter${key}`],
|
|
2785
|
+
message: ChatInputRouterErrors[key](command.name, group?.name ?? "", subcommand?.name ?? ""),
|
|
2786
|
+
context: {
|
|
2787
|
+
command,
|
|
2788
|
+
group: group ?? null,
|
|
2789
|
+
subcommand: subcommand ?? null
|
|
2790
|
+
}
|
|
2791
|
+
});
|
|
2698
2792
|
_defineProperty(this, "key", void 0);
|
|
2699
2793
|
_defineProperty(this, "command", void 0);
|
|
2700
2794
|
_defineProperty(this, "group", void 0);
|
|
@@ -2711,6 +2805,9 @@ var ChatInputRouterError = class extends Error {
|
|
|
2711
2805
|
get path() {
|
|
2712
2806
|
return `${this.command.name}${this.group ? `/${this.group.name}` : ""}${this.subcommand ? `/${this.subcommand.name}` : ""}`;
|
|
2713
2807
|
}
|
|
2808
|
+
get name() {
|
|
2809
|
+
return "ChatInputRouterError";
|
|
2810
|
+
}
|
|
2714
2811
|
};
|
|
2715
2812
|
const ChatInputRouterErrors = {
|
|
2716
2813
|
DuplicatedSubcommandGroup: (command, subcommandGroup) => `Duplicated subcommand group named '${subcommandGroup}' in command '${command}'`,
|
|
@@ -3574,6 +3671,75 @@ var Client = class Client extends AsyncEventEmitter {
|
|
|
3574
3671
|
};
|
|
3575
3672
|
_defineProperty(Client, "plugins", new PluginManager());
|
|
3576
3673
|
|
|
3674
|
+
//#endregion
|
|
3675
|
+
//#region src/lib/errors/ArgumentError.ts
|
|
3676
|
+
/**
|
|
3677
|
+
* Errors thrown while resolving the options (arguments) of an interaction.
|
|
3678
|
+
*
|
|
3679
|
+
* @property name This will be `'ArgumentError'` and can be used to distinguish the type of error when any error gets thrown.
|
|
3680
|
+
* @since 3.2.0
|
|
3681
|
+
* @example
|
|
3682
|
+
* ```typescript
|
|
3683
|
+
* throw new ArgumentError({
|
|
3684
|
+
* argument: 'amount',
|
|
3685
|
+
* parameter: interaction.options.getInteger('amount'),
|
|
3686
|
+
* identifier: Identifiers.ArgumentIntegerTooSmall,
|
|
3687
|
+
* message: 'The amount must be at least 1.',
|
|
3688
|
+
* context: { minimum: 1 }
|
|
3689
|
+
* });
|
|
3690
|
+
* ```
|
|
3691
|
+
*/
|
|
3692
|
+
var ArgumentError = class extends UserError {
|
|
3693
|
+
constructor(options) {
|
|
3694
|
+
super({
|
|
3695
|
+
...options,
|
|
3696
|
+
identifier: options.identifier ?? options.argument
|
|
3697
|
+
});
|
|
3698
|
+
_defineProperty(this, "argument", void 0);
|
|
3699
|
+
_defineProperty(this, "type", void 0);
|
|
3700
|
+
_defineProperty(this, "parameter", void 0);
|
|
3701
|
+
this.argument = options.argument;
|
|
3702
|
+
this.type = options.type ?? null;
|
|
3703
|
+
this.parameter = options.parameter;
|
|
3704
|
+
}
|
|
3705
|
+
get name() {
|
|
3706
|
+
return "ArgumentError";
|
|
3707
|
+
}
|
|
3708
|
+
};
|
|
3709
|
+
|
|
3710
|
+
//#endregion
|
|
3711
|
+
//#region src/lib/errors/PreconditionError.ts
|
|
3712
|
+
/**
|
|
3713
|
+
* Errors thrown by preconditions, that is, any check that runs before a command or an interaction
|
|
3714
|
+
* handler is executed, such as the guild restrictions applied by
|
|
3715
|
+
* {@link RestrictGuildIds}.
|
|
3716
|
+
*
|
|
3717
|
+
* @property name This will be `'PreconditionError'` and can be used to distinguish the type of error when any error gets thrown.
|
|
3718
|
+
* @since 3.2.0
|
|
3719
|
+
* @example
|
|
3720
|
+
* ```typescript
|
|
3721
|
+
* throw new PreconditionError({
|
|
3722
|
+
* precondition: 'GuildIds',
|
|
3723
|
+
* identifier: Identifiers.PreconditionGuildIds,
|
|
3724
|
+
* message: 'This command can only be used in specific guilds.',
|
|
3725
|
+
* context: { guildIds: ['737141877803057244'] }
|
|
3726
|
+
* });
|
|
3727
|
+
* ```
|
|
3728
|
+
*/
|
|
3729
|
+
var PreconditionError = class extends UserError {
|
|
3730
|
+
constructor(options) {
|
|
3731
|
+
super({
|
|
3732
|
+
...options,
|
|
3733
|
+
identifier: options.identifier ?? options.precondition
|
|
3734
|
+
});
|
|
3735
|
+
_defineProperty(this, "precondition", void 0);
|
|
3736
|
+
this.precondition = options.precondition;
|
|
3737
|
+
}
|
|
3738
|
+
get name() {
|
|
3739
|
+
return "PreconditionError";
|
|
3740
|
+
}
|
|
3741
|
+
};
|
|
3742
|
+
|
|
3577
3743
|
//#endregion
|
|
3578
3744
|
//#region src/lib/plugins/Plugin.ts
|
|
3579
3745
|
/**
|
|
@@ -3590,5 +3756,5 @@ _defineProperty(Plugin, preLoad, void 0);
|
|
|
3590
3756
|
_defineProperty(Plugin, postListen, void 0);
|
|
3591
3757
|
|
|
3592
3758
|
//#endregion
|
|
3593
|
-
export { AliasPiece, AliasStore, ApplicationCommandRegistry, ApplicationCommandRegistryEntry, AutocompleteInteraction, BaseInteraction, ChatInputCommandInteraction, Client, Command, CommandInteraction, CommandLoaderStrategy, CommandRegistry, CommandRouter, CommandStore, CommandStoreRouter, HttpCodes, InteractionHandler, InteractionHandlerStore, Listener, ListenerLoaderStrategy, ListenerStore, LoaderError, Message, MessageComponentButtonInteraction, MessageComponentChannelSelectInteraction, MessageComponentInteraction, MessageComponentMentionableSelectInteraction, MessageComponentRoleSelectInteraction, MessageComponentStringSelectInteraction as MessageComponentSelectMenuInteraction, MessageComponentStringSelectInteraction, MessageComponentUserSelectInteraction, MessageContextMenuCommandInteraction, MissingExportsError, ModalSubmitInteraction, PartialMessage, Piece, Plugin, PluginHook, PluginManager, RegisterCommand, RegisterMessageCommand, RegisterSubcommand, RegisterSubcommandGroup, RegisterUserCommand, RestrictGuildIds, Store, StoreRegistry, StringIdParser, UserContextMenuCommandInteraction, applicationCommandRegistry, container, extractTopLevelOptions, makeInteraction, postInitialization, postListen, preGenericsInitialization, preInitialization, preLoad, restrictedGuildIdRegistry, transformAutocompleteInteraction, transformInteraction, transformMessageInteraction, transformUserInteraction };
|
|
3759
|
+
export { AliasPiece, AliasStore, ApplicationCommandRegistry, ApplicationCommandRegistryEntry, ArgumentError, AutocompleteInteraction, BaseInteraction, ChatInputCommandInteraction, ChatInputRouterError, ChatInputRouterErrors, Client, Command, CommandInteraction, CommandLoaderStrategy, CommandRegistry, CommandRouter, CommandStore, CommandStoreRouter, HttpCodes, Identifiers, InteractionHandler, InteractionHandlerStore, Listener, ListenerLoaderStrategy, ListenerStore, LoaderError, Message, MessageComponentButtonInteraction, MessageComponentChannelSelectInteraction, MessageComponentInteraction, MessageComponentMentionableSelectInteraction, MessageComponentRoleSelectInteraction, MessageComponentStringSelectInteraction as MessageComponentSelectMenuInteraction, MessageComponentStringSelectInteraction, MessageComponentUserSelectInteraction, MessageContextMenuCommandInteraction, MissingExportsError, ModalSubmitInteraction, PartialMessage, Piece, Plugin, PluginHook, PluginManager, PreconditionError, RegisterCommand, RegisterMessageCommand, RegisterSubcommand, RegisterSubcommandGroup, RegisterUserCommand, RestrictGuildIds, Store, StoreRegistry, StringIdParser, UserContextMenuCommandInteraction, UserError, applicationCommandRegistry, container, extractTopLevelOptions, makeInteraction, postInitialization, postListen, preGenericsInitialization, preInitialization, preLoad, restrictedGuildIdRegistry, transformAutocompleteInteraction, transformInteraction, transformMessageInteraction, transformUserInteraction };
|
|
3594
3760
|
//# sourceMappingURL=index.js.map
|