@wolfstar/http-framework 3.2.0-next-20260829135919 → 3.2.0-next-20260829140853

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 CHANGED
@@ -135,6 +135,147 @@ export class UserCommand extends Command {
135
135
  > **Note**: this is an alternative to the decorators, not a replacement — both approaches share the same underlying
136
136
  > registry and can be mixed across different commands in the same project.
137
137
 
138
+ ### Utility decorators
139
+
140
+ Besides the `Register*` decorators, the framework ships a set of utility decorators for configuring pieces and gating
141
+ methods.
142
+
143
+ #### `ApplyOptions`
144
+
145
+ Sets the options of any `Piece` — `Command`, `Listener`, or `InteractionHandler` — without writing a constructor. The
146
+ decorator's values are merged on top of the options the piece is constructed with, so they win on conflicting keys.
147
+
148
+ ```typescript
149
+ import { ApplyOptions, Command, RegisterCommand } from '@wolfstar/http-framework';
150
+
151
+ @ApplyOptions<Command.Options>({ name: 'ping', enabled: true })
152
+ @RegisterCommand({ name: 'ping', description: 'A simple ping pong command' })
153
+ export class UserCommand extends Command {
154
+ public override chatInputRun(interaction: Command.ChatInputInteraction) {
155
+ return interaction.reply({ content: 'Pong!' });
156
+ }
157
+ }
158
+ ```
159
+
160
+ It also accepts a function, which receives the loader context:
161
+
162
+ ```typescript
163
+ @ApplyOptions<Command.Options>(({ name }) => ({ name: name.toLowerCase() }))
164
+ export class UserCommand extends Command {}
165
+ ```
166
+
167
+ > **Note**: `ApplyOptions` returns a `Proxy` wrapping the class, so it must be applied above (outside of) any other class
168
+ > decorator that keys metadata by class identity, such as `RegisterCommand` — as in the example above. A decorator
169
+ > applied above `ApplyOptions` would run after it and register against the proxy, but instances constructed from the
170
+ > exported class still resolve `.constructor` to the original, unproxied class, so that metadata could never be found.
171
+
172
+ #### `RequiresGuildContext` / `RequiresDMContext`
173
+
174
+ Restrict a method to interactions received from a guild, or to interactions received outside of one (DMs and
175
+ user-installed app contexts). Both take an optional fallback that receives the same arguments as the decorated method;
176
+ without one, the method is silently skipped and resolves to `undefined`.
177
+
178
+ ```typescript
179
+ import { Command, RegisterCommand, RequiresGuildContext } from '@wolfstar/http-framework';
180
+
181
+ @RegisterCommand({ name: 'kick', description: 'Kicks a member' })
182
+ export class UserCommand extends Command {
183
+ @RequiresGuildContext((interaction: Command.ChatInputInteraction) => interaction.reply({ content: 'This command can only be used in a server.' }))
184
+ public override chatInputRun(interaction: Command.ChatInputInteraction) {
185
+ return interaction.reply({ content: `Hello from ${interaction.guildId}!` });
186
+ }
187
+ }
188
+ ```
189
+
190
+ #### `RequiresUserPermissions` / `RequiresClientPermissions`
191
+
192
+ Check the permissions of the invoking user (`member.permissions`) or of the application (`app_permissions`) in the
193
+ channel the interaction was sent from. Permissions are given as `PermissionFlagsBits` values, as flag names, or as any
194
+ nested array of both.
195
+
196
+ ```typescript
197
+ import { Command, RegisterCommand, RequiresClientPermissions, RequiresUserPermissions } from '@wolfstar/http-framework';
198
+ import { PermissionFlagsBits } from 'discord-api-types/v10';
199
+
200
+ @RegisterCommand({ name: 'purge', description: 'Deletes messages' })
201
+ export class UserCommand extends Command {
202
+ @RequiresUserPermissions('ManageMessages')
203
+ @RequiresClientPermissions(PermissionFlagsBits.ManageMessages, 'ReadMessageHistory')
204
+ public override chatInputRun(interaction: Command.ChatInputInteraction) {
205
+ return interaction.reply({ content: 'Purging!' });
206
+ }
207
+ }
208
+ ```
209
+
210
+ When the check fails, a `PreconditionError` is thrown, identified by `Identifiers.PreconditionUserPermissions` or
211
+ `Identifiers.PreconditionClientPermissions`, with `context: { missing, missingNames }` describing the missing
212
+ permissions. Errors thrown from a command are emitted as `commandError` (and as `interactionHandlerError` for
213
+ interaction handlers), which is the idiomatic place to turn them into a user-facing reply:
214
+
215
+ ```typescript
216
+ import { ApplyOptions, Identifiers, Listener, PreconditionError, type ClientEventCommandContext } from '@wolfstar/http-framework';
217
+
218
+ @ApplyOptions<Listener.Options>({ emitter: 'client', event: 'commandError' })
219
+ export class UserListener extends Listener {
220
+ public run(error: unknown, context: ClientEventCommandContext) {
221
+ if (
222
+ error instanceof PreconditionError &&
223
+ (error.identifier === Identifiers.PreconditionUserPermissions || error.identifier === Identifiers.PreconditionClientPermissions)
224
+ ) {
225
+ const { missingNames } = error.context as { missingNames: string[] };
226
+ this.container.logger.warn(`${context.command.name}: missing ${error.precondition}: ${missingNames.join(', ')}`);
227
+ }
228
+ }
229
+ }
230
+ ```
231
+
232
+ Notes on the semantics:
233
+
234
+ - Members with `Administrator` implicitly satisfy every check.
235
+ - `RequiresUserPermissions` passes for interactions received outside of a guild, since there are no guild permissions to
236
+ check. Combine it with `RequiresGuildContext` when the method must be guild-only.
237
+ - `RequiresClientPermissions` passes when `app_permissions` is absent from the payload, since there is nothing to check
238
+ against.
239
+
240
+ #### `Enumerable` / `EnumerableMethod`
241
+
242
+ Control whether a field or a method shows up in `Object.keys`, `JSON.stringify`, and console output.
243
+
244
+ ```typescript
245
+ import { Command, Enumerable } from '@wolfstar/http-framework';
246
+
247
+ export class UserCommand extends Command {
248
+ @Enumerable(false)
249
+ declare public cache: Map<string, string>;
250
+
251
+ public constructor(context: Command.LoaderContext, options: Command.Options) {
252
+ super(context, options);
253
+ this.cache = new Map();
254
+ }
255
+ }
256
+ ```
257
+
258
+ > **Note**: `Enumerable` installs a setter on the prototype, which is bypassed by the `Object.defineProperty` call that
259
+ > `useDefineForClassFields` (enabled by `@sapphire/ts-config`, and the default from `ES2022` onwards) emits for class
260
+ > fields. Mark the field as `declare` so no field definition is emitted, and assign it in the constructor.
261
+
262
+ #### Building your own decorators
263
+
264
+ `createClassDecorator`, `createMethodDecorator`, `createProxy`, and `createFunctionPrecondition` are the primitives the
265
+ decorators above — and the `Register*` ones — are built on, and are exported so you can build your own.
266
+
267
+ ```typescript
268
+ import { Command, createFunctionPrecondition } from '@wolfstar/http-framework';
269
+
270
+ export const RequiresOwner = createFunctionPrecondition(
271
+ (interaction: Command.ChatInputInteraction) => interaction.user.id === process.env.OWNER_ID,
272
+ (interaction: Command.ChatInputInteraction) => interaction.reply({ content: 'Owner only.' })
273
+ );
274
+ ```
275
+
276
+ > **Note**: `createFunctionPrecondition` replaces the decorated method with an `async` one, so a decorated method always
277
+ > returns a `Promise`, even when both the precondition and the method are synchronous.
278
+
138
279
  ### Client
139
280
 
140
281
  The `Client` class contains the HTTP server, powered by [`node:http`], it also registers a handler that processes whether or not the HTTP request comes from Discord and processes the information accordingly, handling the heavyweight in the background.
@@ -1,8 +1,8 @@
1
- import { AliasPiece, AliasPieceOptions, AliasStore, Container, LoaderError, LoaderPieceContext, LoaderStrategy, MissingExportsError, Piece, Piece as Piece$1, PieceContext, PieceOptions, Store, Store as Store$1, StoreOptions, StoreRegistry, StoreRegistryEntries, container } from "@sapphire/pieces";
1
+ import { AliasPiece, AliasPieceOptions, AliasStore, Container, LoaderError, LoaderPieceContext, LoaderPieceContext as LoaderPieceContext$1, LoaderStrategy, MissingExportsError, Piece, Piece as Piece$1, PieceContext, PieceOptions, PieceOptions as PieceOptions$1, Store, Store as Store$1, StoreOptions, StoreRegistry, StoreRegistryEntries, container } from "@sapphire/pieces";
2
2
  import { DiscordAPIError, HTTPError, REST, RESTOptions, RawFile, RequestData } from "@discordjs/rest";
3
3
  import { Awaitable, NonNullObject } from "@sapphire/utilities";
4
4
  import { AsyncEventEmitter } from "@vladfrangu/async_event_emitter";
5
- import { APIApplicationCommandAutocompleteInteraction, APIApplicationCommandAutocompleteResponse, APIApplicationCommandInteraction, APIApplicationCommandInteractionDataBasicOption, APIApplicationCommandInteractionDataOption, APIApplicationCommandInteractionDataSubcommandGroupOption, APIApplicationCommandInteractionDataSubcommandOption, APIApplicationCommandSubcommandGroupOption, APIApplicationCommandSubcommandOption, APIAttachment, APIBaseInteraction, APIChannel, APIChatInputApplicationCommandInteraction, APIChatInputApplicationCommandInteractionData, APIContextMenuInteractionData, APIGuild, APIInteraction, APIInteractionDataResolved, APIInteractionDataResolvedChannel, APIInteractionDataResolvedGuildMember, APIInteractionResponseChannelMessageWithSource, APIInteractionResponseDeferredChannelMessageWithSource, APIInteractionResponseDeferredMessageUpdate, APIInteractionResponseUpdateMessage, APIMessage, APIMessageApplicationCommandInteraction, APIMessageApplicationCommandInteractionData, APIMessageChannelSelectInteractionData, APIMessageComponentButtonInteraction, APIMessageComponentInteraction, APIMessageComponentSelectMenuInteraction, APIMessageMentionableSelectInteractionData, APIMessageRoleSelectInteractionData, APIMessageStringSelectInteractionData, APIMessageUserSelectInteractionData, APIModalInteractionResponse, APIModalSubmitInteraction, APIPingInteraction, APIPrimaryEntryPointCommandInteraction, APIRole, APIUser, APIUserApplicationCommandInteraction, APIUserApplicationCommandInteractionData, ApplicationCommandOptionType, ApplicationCommandType, InteractionType, RESTPatchAPIInteractionOriginalResponseJSONBody, RESTPatchAPIInteractionOriginalResponseResult, RESTPostAPIApplicationCommandsJSONBody, RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody, RESTPostAPIInteractionFollowupJSONBody, RESTPostAPIPrimaryEntryPointApplicationCommandJSONBody, RESTPutAPIApplicationCommandsResult, RESTPutAPIApplicationGuildCommandsResult, Snowflake } from "discord-api-types/v10";
5
+ import { APIApplicationCommandAutocompleteInteraction, APIApplicationCommandAutocompleteResponse, APIApplicationCommandInteraction, APIApplicationCommandInteractionDataBasicOption, APIApplicationCommandInteractionDataOption, APIApplicationCommandInteractionDataSubcommandGroupOption, APIApplicationCommandInteractionDataSubcommandOption, APIApplicationCommandSubcommandGroupOption, APIApplicationCommandSubcommandOption, APIAttachment, APIBaseInteraction, APIChannel, APIChatInputApplicationCommandInteraction, APIChatInputApplicationCommandInteractionData, APIContextMenuInteractionData, APIGuild, APIInteraction, APIInteractionDataResolved, APIInteractionDataResolvedChannel, APIInteractionDataResolvedGuildMember, APIInteractionResponseChannelMessageWithSource, APIInteractionResponseDeferredChannelMessageWithSource, APIInteractionResponseDeferredMessageUpdate, APIInteractionResponseUpdateMessage, APIMessage, APIMessageApplicationCommandInteraction, APIMessageApplicationCommandInteractionData, APIMessageChannelSelectInteractionData, APIMessageComponentButtonInteraction, APIMessageComponentInteraction, APIMessageComponentSelectMenuInteraction, APIMessageMentionableSelectInteractionData, APIMessageRoleSelectInteractionData, APIMessageStringSelectInteractionData, APIMessageUserSelectInteractionData, APIModalInteractionResponse, APIModalSubmitInteraction, APIPingInteraction, APIPrimaryEntryPointCommandInteraction, APIRole, APIUser, APIUserApplicationCommandInteraction, APIUserApplicationCommandInteractionData, ApplicationCommandOptionType, ApplicationCommandType, InteractionType, PermissionFlagsBits, RESTPatchAPIInteractionOriginalResponseJSONBody, RESTPatchAPIInteractionOriginalResponseResult, RESTPostAPIApplicationCommandsJSONBody, RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody, RESTPostAPIInteractionFollowupJSONBody, RESTPostAPIPrimaryEntryPointApplicationCommandJSONBody, RESTPutAPIApplicationCommandsResult, RESTPutAPIApplicationGuildCommandsResult, Snowflake } from "discord-api-types/v10";
6
6
  import { IncomingMessage, Server, ServerOptions, ServerResponse } from "node:http";
7
7
  import { Result } from "@sapphire/result";
8
8
  import { Collection } from "@discordjs/collection";
@@ -2353,6 +2353,293 @@ declare class StringIdParser implements IIdParser {
2353
2353
  run(customId: string): IdParserRead | null;
2354
2354
  }
2355
2355
  //#endregion
2356
+ //#region src/lib/decorators/ApplyOptions.d.ts
2357
+ /**
2358
+ * The constructor signature shared by every `Piece` of `@wolfstar/http-framework`, such as `Command`, `Listener`, and
2359
+ * `InteractionHandler`.
2360
+ */
2361
+ type PieceConstructor<Options extends PieceOptions$1 = PieceOptions$1> = new (context: LoaderPieceContext$1, options?: Options) => unknown;
2362
+ /**
2363
+ * Decorator that sets the options of a `Piece`, such as a `Command`, a `Listener`, or an `InteractionHandler`.
2364
+ *
2365
+ * @remarks The options are merged on top of the ones the piece was constructed with, so a piece that also passes
2366
+ * options through `super(context, options)` will have the decorator's values win on conflicting keys.
2367
+ * @remarks Apply this decorator above (outside of) any other class decorator that keys metadata by class identity,
2368
+ * such as {@linkcode RegisterCommand} — as in the example below. This decorator returns a `Proxy` wrapping the class,
2369
+ * so a decorator applied above it (running after it, and therefore registering against the proxy) would register
2370
+ * metadata that instances constructed from the exported class — whose `.constructor` still resolves to the original,
2371
+ * unproxied class — can never be looked up by.
2372
+ * @param optionsOrFn The options to pass to the piece's constructor, or a function that builds them from the loader
2373
+ * context.
2374
+ * @returns A class decorator.
2375
+ * @example
2376
+ * ```typescript
2377
+ * import { ApplyOptions, Command, RegisterCommand } from '@wolfstar/http-framework';
2378
+ *
2379
+ * (at)ApplyOptions<Command.Options>({ name: 'ping', enabled: true })
2380
+ * (at)RegisterCommand({ name: 'ping', description: 'A simple ping pong command' })
2381
+ * export class UserCommand extends Command {
2382
+ * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2383
+ * return interaction.reply({ content: 'Pong!' });
2384
+ * }
2385
+ * }
2386
+ * ```
2387
+ * @example
2388
+ * ```typescript
2389
+ * (at)ApplyOptions<Command.Options>(({ name }) => ({ name: name.toLowerCase() }))
2390
+ * export class UserCommand extends Command {}
2391
+ * ```
2392
+ */
2393
+ declare function ApplyOptions<Options extends PieceOptions$1 = PieceOptions$1>(optionsOrFn: Options | ((context: LoaderPieceContext$1) => Options)): ClassDecorator;
2394
+ //#endregion
2395
+ //#region src/lib/decorators/Enumerable.d.ts
2396
+ /**
2397
+ * Decorator that sets the `enumerable` property of a class field to the given value.
2398
+ *
2399
+ * @remarks The decorator installs a setter on the prototype, which is bypassed by the `Object.defineProperty` call
2400
+ * that `useDefineForClassFields` (enabled by `@sapphire/ts-config`, and the default from `ES2022` onwards) emits for
2401
+ * class fields. Mark the field as `declare` so no field definition is emitted, and assign it in the constructor.
2402
+ * @param value Whether the property should be enumerable or not.
2403
+ * @returns A property decorator.
2404
+ * @example
2405
+ * ```typescript
2406
+ * import { Command, Enumerable } from '@wolfstar/http-framework';
2407
+ *
2408
+ * export class UserCommand extends Command {
2409
+ * (at)Enumerable(false)
2410
+ * declare public cache: Map<string, string>;
2411
+ *
2412
+ * public constructor(context: Command.LoaderContext, options: Command.Options) {
2413
+ * super(context, options);
2414
+ * this.cache = new Map();
2415
+ * }
2416
+ * }
2417
+ * ```
2418
+ */
2419
+ declare function Enumerable(value: boolean): (target: unknown, key: string) => void;
2420
+ /**
2421
+ * Decorator that sets the `enumerable` property of a class method to the given value.
2422
+ *
2423
+ * @param value Whether the method should be enumerable or not.
2424
+ * @returns A method decorator.
2425
+ * @example
2426
+ * ```typescript
2427
+ * import { Command, EnumerableMethod } from '@wolfstar/http-framework';
2428
+ *
2429
+ * export class UserCommand extends Command {
2430
+ * (at)EnumerableMethod(true)
2431
+ * public getCacheKey(id: string) {
2432
+ * return `user:${id}`;
2433
+ * }
2434
+ * }
2435
+ * ```
2436
+ */
2437
+ declare function EnumerableMethod(value: boolean): (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;
2438
+ //#endregion
2439
+ //#region src/lib/decorators/RequiresContext.d.ts
2440
+ /**
2441
+ * The fallback invoked when a context precondition is not met. It receives the same arguments as the decorated method.
2442
+ */
2443
+ type ContextFallback = (...args: any[]) => unknown;
2444
+ /**
2445
+ * Decorator that only runs the decorated method when the interaction was received from a guild.
2446
+ *
2447
+ * @param fallback The fallback to run when the interaction did not come from a guild. Defaults to a no-op, which
2448
+ * silently skips the method.
2449
+ * @returns A method decorator.
2450
+ * @example
2451
+ * ```typescript
2452
+ * import { Command, RegisterCommand, RequiresGuildContext } from '@wolfstar/http-framework';
2453
+ *
2454
+ * (at)RegisterCommand({ name: 'kick', description: 'Kicks a member' })
2455
+ * export class UserCommand extends Command {
2456
+ * (at)RequiresGuildContext((interaction: Command.ChatInputInteraction) =>
2457
+ * interaction.reply({ content: 'This command can only be used in a server.' })
2458
+ * )
2459
+ * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2460
+ * return interaction.reply({ content: `Hello from ${interaction.guildId}!` });
2461
+ * }
2462
+ * }
2463
+ * ```
2464
+ */
2465
+ declare function RequiresGuildContext(fallback?: ContextFallback): MethodDecorator;
2466
+ /**
2467
+ * Decorator that only runs the decorated method when the interaction was **not** received from a guild, that is, from a
2468
+ * DM or from a user-installed app context.
2469
+ *
2470
+ * @param fallback The fallback to run when the interaction came from a guild. Defaults to a no-op, which silently skips
2471
+ * the method.
2472
+ * @returns A method decorator.
2473
+ * @example
2474
+ * ```typescript
2475
+ * import { Command, RegisterCommand, RequiresDMContext } from '@wolfstar/http-framework';
2476
+ *
2477
+ * (at)RegisterCommand({ name: 'private', description: 'Only usable outside of servers' })
2478
+ * export class UserCommand extends Command {
2479
+ * (at)RequiresDMContext((interaction: Command.ChatInputInteraction) =>
2480
+ * interaction.reply({ content: 'This command cannot be used in a server.' })
2481
+ * )
2482
+ * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2483
+ * return interaction.reply({ content: 'Hello!' });
2484
+ * }
2485
+ * }
2486
+ * ```
2487
+ */
2488
+ declare function RequiresDMContext(fallback?: ContextFallback): MethodDecorator;
2489
+ //#endregion
2490
+ //#region src/lib/utils/permissions.d.ts
2491
+ /**
2492
+ * The name of a Discord permission flag, as defined by {@linkcode PermissionFlagsBits}.
2493
+ */
2494
+ type PermissionString = keyof typeof PermissionFlagsBits;
2495
+ /**
2496
+ * Anything that can be resolved into a permission bitfield:
2497
+ *
2498
+ * - A `bigint`, such as the values of {@linkcode PermissionFlagsBits}.
2499
+ * - A {@linkcode PermissionString}, such as `'BanMembers'`.
2500
+ * - An arbitrarily nested (readonly) array of the above.
2501
+ */
2502
+ type PermissionResolvable = bigint | PermissionString | readonly PermissionResolvable[];
2503
+ /**
2504
+ * Resolves any {@linkcode PermissionResolvable} into a single permission bitfield.
2505
+ *
2506
+ * @param resolvable The value to resolve.
2507
+ * @returns The resolved bitfield.
2508
+ * @throws `TypeError` If a string was given that is not a known permission flag.
2509
+ * @example
2510
+ * ```typescript
2511
+ * resolvePermissions(['BanMembers', PermissionFlagsBits.KickMembers]);
2512
+ * // 6n
2513
+ * ```
2514
+ */
2515
+ declare function resolvePermissions(resolvable: PermissionResolvable): bigint;
2516
+ /**
2517
+ * Computes the permissions from `required` that are missing in `granted`.
2518
+ *
2519
+ * @remarks Members with the `Administrator` permission implicitly have every permission, so this returns `0n` when
2520
+ * `granted` contains it.
2521
+ * @param granted The bitfield of the permissions that were granted.
2522
+ * @param required The bitfield of the permissions that are required.
2523
+ * @returns The bitfield of the missing permissions, `0n` if none are missing.
2524
+ */
2525
+ declare function getMissingPermissions(granted: bigint, required: bigint): bigint;
2526
+ /**
2527
+ * Converts a permission bitfield into the list of the flag names it contains.
2528
+ *
2529
+ * @param bits The bitfield to convert.
2530
+ * @returns The names of the permissions contained in the bitfield.
2531
+ */
2532
+ declare function toPermissionNames(bits: bigint): PermissionString[];
2533
+ //#endregion
2534
+ //#region src/lib/decorators/RequiresPermissions.d.ts
2535
+ /**
2536
+ * Decorator that only runs the decorated method when the application has all of the given permissions in the channel
2537
+ * the interaction was sent from, as reported by the interaction's `app_permissions` field.
2538
+ *
2539
+ * @remarks When the fallback is omitted, a {@linkcode PreconditionError} identified by
2540
+ * {@linkcode Identifiers.PreconditionClientPermissions} is thrown, which the client emits as `commandError` (or
2541
+ * `interactionHandlerError`) for a `Listener` to turn into a user-facing reply.
2542
+ * @param permissions The permissions the application must have.
2543
+ * @returns A method decorator.
2544
+ * @example
2545
+ * ```typescript
2546
+ * import { Command, RegisterCommand, RequiresClientPermissions } from '@wolfstar/http-framework';
2547
+ *
2548
+ * (at)RegisterCommand({ name: 'purge', description: 'Deletes messages' })
2549
+ * export class UserCommand extends Command {
2550
+ * (at)RequiresClientPermissions('ManageMessages')
2551
+ * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2552
+ * return interaction.reply({ content: 'Purging!' });
2553
+ * }
2554
+ * }
2555
+ * ```
2556
+ */
2557
+ declare function RequiresClientPermissions(...permissions: PermissionResolvable[]): MethodDecorator;
2558
+ /**
2559
+ * Decorator that only runs the decorated method when the invoking user has all of the given permissions in the channel
2560
+ * the interaction was sent from.
2561
+ *
2562
+ * @remarks Interactions received outside of a guild carry no member permissions, so the check passes for them. Pair
2563
+ * this decorator with {@linkcode RequiresGuildContext} when the method must also be guild-only.
2564
+ * @remarks When the fallback is omitted, a {@linkcode PreconditionError} identified by
2565
+ * {@linkcode Identifiers.PreconditionUserPermissions} is thrown, which the client emits as `commandError` (or
2566
+ * `interactionHandlerError`) for a `Listener` to turn into a user-facing reply.
2567
+ * @param permissions The permissions the invoking user must have.
2568
+ * @returns A method decorator.
2569
+ * @example
2570
+ * ```typescript
2571
+ * import { Command, RegisterCommand, RequiresUserPermissions } from '@wolfstar/http-framework';
2572
+ *
2573
+ * (at)RegisterCommand({ name: 'ban', description: 'Bans a member' })
2574
+ * export class UserCommand extends Command {
2575
+ * (at)RequiresUserPermissions('BanMembers')
2576
+ * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2577
+ * return interaction.reply({ content: 'Banned!' });
2578
+ * }
2579
+ * }
2580
+ * ```
2581
+ */
2582
+ declare function RequiresUserPermissions(...permissions: PermissionResolvable[]): MethodDecorator;
2583
+ //#endregion
2584
+ //#region src/lib/decorators/utils.d.ts
2585
+ /**
2586
+ * Utility to make a method decorator from a function.
2587
+ *
2588
+ * @remarks The decorator is returned with the signature it was given, rather than widened to `MethodDecorator`, so a
2589
+ * decorator built on top of this keeps whatever constraint it declares on its target.
2590
+ * @param fn The method to decorate.
2591
+ * @returns The decorator.
2592
+ * @example
2593
+ * ```typescript
2594
+ * // Enumerable function that will not append the property to the prototype:
2595
+ * function enumerableMethod(value: boolean) {
2596
+ * return createMethodDecorator((_target: unknown, _propertyKey: string, descriptor: PropertyDescriptor) => {
2597
+ * descriptor.enumerable = value;
2598
+ * });
2599
+ * }
2600
+ * ```
2601
+ */
2602
+ declare function createMethodDecorator<TFunction extends (...args: any[]) => unknown>(fn: TFunction): TFunction;
2603
+ /**
2604
+ * Utility to make a class decorator from a function.
2605
+ *
2606
+ * @remarks The decorator is returned with the signature it was given, rather than widened to `ClassDecorator`, so a
2607
+ * decorator built on top of this keeps whatever constraint it declares on its target. This is what lets
2608
+ * {@linkcode RegisterCommand} and its siblings reject a target that is not a `Command`.
2609
+ * @param fn The class to decorate.
2610
+ * @returns The decorator.
2611
+ * @see {@linkcode ApplyOptions}
2612
+ */
2613
+ declare function createClassDecorator<TFunction extends (...args: any[]) => unknown>(fn: TFunction): TFunction;
2614
+ /**
2615
+ * Creates a new proxy to efficiently add properties to a class without creating subclasses.
2616
+ *
2617
+ * @param target The constructor of the class to modify.
2618
+ * @param handler The handler function to modify the constructor behavior for the target.
2619
+ * @returns The proxy.
2620
+ */
2621
+ declare function createProxy<T extends object>(target: T, handler: Omit<ProxyHandler<T>, 'get'>): T;
2622
+ /**
2623
+ * Utility to make a method decorator with lighter syntax and inferred types.
2624
+ *
2625
+ * @remarks The decorated method is replaced by an `async` one, so it always returns a `Promise`, even when both the
2626
+ * precondition and the original method are synchronous.
2627
+ * @param precondition The predicate to run before the decorated method. It receives the same arguments as the method
2628
+ * and is called with the same `this`.
2629
+ * @param fallback The fallback to run when the precondition is not met. Defaults to a no-op returning `undefined`.
2630
+ * @returns The decorator.
2631
+ * @example
2632
+ * ```typescript
2633
+ * import { Command, RegisterCommand, createFunctionPrecondition } from '@wolfstar/http-framework';
2634
+ *
2635
+ * const RequiresOwner = createFunctionPrecondition(
2636
+ * (interaction: Command.ChatInputInteraction) => interaction.user.id === process.env.OWNER_ID,
2637
+ * (interaction: Command.ChatInputInteraction) => interaction.reply({ content: 'Owner only.' })
2638
+ * );
2639
+ * ```
2640
+ */
2641
+ declare function createFunctionPrecondition(precondition: (...args: any[]) => boolean | Promise<boolean>, fallback?: (...args: any[]) => unknown): MethodDecorator;
2642
+ //#endregion
2356
2643
  //#region src/lib/errors/UserError.d.ts
2357
2644
  /**
2358
2645
  * The UserError class to be thrown and emitted by the pieces of the framework.
@@ -2671,5 +2958,5 @@ declare class ListenerLoaderStrategy extends LoaderStrategy<Listener> {
2671
2958
  onUnload(_store: ListenerStore, piece: Listener): void;
2672
2959
  }
2673
2960
  //#endregion
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 };
2961
+ export { type AbortError, type AddFiles, AliasPiece, type AliasPieceOptions, AliasStore, ApplicationCommandRegistry, ApplicationCommandRegistryEntry, ApplyOptions, 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, ContextFallback, DeferResponseData, DeferResponseOptions, DeferUpdateResult, type DiscordError, type DiscordResult, Enumerable, EnumerableMethod, 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, PermissionResolvable, PermissionString, Piece, PieceConstructor, type PieceContext, type PieceOptions, Plugin, PluginHook, PluginManager, PreconditionError, RegisterCommand, RegisterMessageCommand, RegisterSubcommand, RegisterSubcommandGroup, RegisterUserCommand, RequestAuthPrefix, RequiresClientPermissions, RequiresDMContext, RequiresGuildContext, RequiresUserPermissions, RestrictGuildIds, Store, type StoreOptions, StoreRegistry, type StoreRegistryEntries, StringIdParser, SyncPluginHooks, TransformedArguments, UpdateData, UpdateOptions, UpdateResponseOptions, UpdateResponseResult, UserContextMenuCommandInteraction, UserError, applicationCommandRegistry, container, createClassDecorator, createFunctionPrecondition, createMethodDecorator, createProxy, extractTopLevelOptions, getMissingPermissions, makeInteraction, postInitialization, postListen, preGenericsInitialization, preInitialization, preLoad, resolvePermissions, restrictedGuildIdRegistry, toPermissionNames, transformAutocompleteInteraction, transformInteraction, transformMessageInteraction, transformUserInteraction };
2675
2962
  //# sourceMappingURL=index.d.ts.map
@@ -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/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","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AAS,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"}
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/decorators/ApplyOptions.ts","../../src/lib/decorators/Enumerable.ts","../../src/lib/decorators/RequiresContext.ts","../../src/lib/utils/permissions.ts","../../src/lib/decorators/RequiresPermissions.ts","../../src/lib/decorators/utils.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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