@wolfstar/http-framework 5.1.2 → 6.0.0-next-20260929152320

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
@@ -154,145 +154,26 @@ export class UserCommand extends Command {
154
154
 
155
155
  ### Utility decorators
156
156
 
157
- Besides the `Register*` decorators, the framework ships a set of utility decorators for configuring pieces and gating
158
- methods.
159
-
160
- #### `ApplyOptions`
161
-
162
- Sets the options of any `Piece` — `Command`, `Listener`, or `InteractionHandler` — without writing a constructor. The
163
- decorator's values are merged on top of the options the piece is constructed with, so they win on conflicting keys.
157
+ The utility decorators for configuring pieces and gating methods — `ApplyOptions`, `RequiresGuildContext`,
158
+ `RequiresDMContext`, `RequiresUserPermissions`, `RequiresClientPermissions`, `Enumerable`, `EnumerableMethod`, and the
159
+ `createClassDecorator`/`createMethodDecorator`/`createProxy`/`createFunctionPrecondition` primitives — live in their own
160
+ package, [`@wolfstar/decorators`](https://npmx.dev/package/@wolfstar/decorators), the same way `@sapphire/framework`
161
+ pairs with `@sapphire/decorators`:
164
162
 
165
163
  ```typescript
166
- import { ApplyOptions, Command, RegisterCommand } from '@wolfstar/http-framework';
167
-
168
- @ApplyOptions<Command.Options>({ name: 'ping', enabled: true })
169
- @RegisterCommand({ name: 'ping', description: 'A simple ping pong command' })
170
- export class UserCommand extends Command {
171
- public override chatInputRun(interaction: Command.ChatInputInteraction) {
172
- return interaction.reply({ content: 'Pong!' });
173
- }
174
- }
175
- ```
176
-
177
- It also accepts a function, which receives the loader context:
178
-
179
- ```typescript
180
- @ApplyOptions<Command.Options>(({ name }) => ({ name: name.toLowerCase() }))
181
- export class UserCommand extends Command {}
182
- ```
183
-
184
- > **Note**: `ApplyOptions` returns a `Proxy` wrapping the class, so it must be applied above (outside of) any other class
185
- > decorator that keys metadata by class identity, such as `RegisterCommand` — as in the example above. A decorator
186
- > applied above `ApplyOptions` would run after it and register against the proxy, but instances constructed from the
187
- > exported class still resolve `.constructor` to the original, unproxied class, so that metadata could never be found.
188
-
189
- #### `RequiresGuildContext` / `RequiresDMContext`
190
-
191
- Restrict a method to interactions received from a guild, or to interactions received outside of one (DMs and
192
- user-installed app contexts). Both take an optional fallback that receives the same arguments as the decorated method;
193
- without one, the method is silently skipped and resolves to `undefined`.
194
-
195
- ```typescript
196
- import { Command, RegisterCommand, RequiresGuildContext } from '@wolfstar/http-framework';
164
+ import { ApplyOptions, RequiresGuildContext } from '@wolfstar/decorators';
165
+ import { Command, RegisterCommand } from '@wolfstar/http-framework';
197
166
 
167
+ @ApplyOptions<Command.Options>({ name: 'kick' })
198
168
  @RegisterCommand({ name: 'kick', description: 'Kicks a member' })
199
169
  export class UserCommand extends Command {
200
- @RequiresGuildContext((interaction: Command.ChatInputInteraction) => interaction.reply({ content: 'This command can only be used in a server.' }))
170
+ @RequiresGuildContext()
201
171
  public override chatInputRun(interaction: Command.ChatInputInteraction) {
202
172
  return interaction.reply({ content: `Hello from ${interaction.guildId}!` });
203
173
  }
204
174
  }
205
175
  ```
206
176
 
207
- #### `RequiresUserPermissions` / `RequiresClientPermissions`
208
-
209
- Check the permissions of the invoking user (`member.permissions`) or of the application (`app_permissions`) in the
210
- channel the interaction was sent from. Permissions are given as `PermissionFlagsBits` values, as flag names, or as any
211
- nested array of both.
212
-
213
- ```typescript
214
- import { Command, RegisterCommand, RequiresClientPermissions, RequiresUserPermissions } from '@wolfstar/http-framework';
215
- import { PermissionFlagsBits } from 'discord-api-types/v10';
216
-
217
- @RegisterCommand({ name: 'purge', description: 'Deletes messages' })
218
- export class UserCommand extends Command {
219
- @RequiresUserPermissions('ManageMessages')
220
- @RequiresClientPermissions(PermissionFlagsBits.ManageMessages, 'ReadMessageHistory')
221
- public override chatInputRun(interaction: Command.ChatInputInteraction) {
222
- return interaction.reply({ content: 'Purging!' });
223
- }
224
- }
225
- ```
226
-
227
- When the check fails, a `PreconditionError` is thrown, identified by `Identifiers.PreconditionUserPermissions` or
228
- `Identifiers.PreconditionClientPermissions`, with `context: { missing, missingNames }` describing the missing
229
- permissions. Errors thrown from a command are emitted as `commandError` (and as `interactionHandlerError` for
230
- interaction handlers), which is the idiomatic place to turn them into a user-facing reply:
231
-
232
- ```typescript
233
- import { ApplyOptions, Identifiers, Listener, PreconditionError, type ClientEventCommandContext } from '@wolfstar/http-framework';
234
-
235
- @ApplyOptions<Listener.Options>({ emitter: 'client', event: 'commandError' })
236
- export class UserListener extends Listener {
237
- public run(error: unknown, context: ClientEventCommandContext) {
238
- if (
239
- error instanceof PreconditionError &&
240
- (error.identifier === Identifiers.PreconditionUserPermissions || error.identifier === Identifiers.PreconditionClientPermissions)
241
- ) {
242
- const { missingNames } = error.context as { missingNames: string[] };
243
- this.container.logger.warn(`${context.command.name}: missing ${error.precondition}: ${missingNames.join(', ')}`);
244
- }
245
- }
246
- }
247
- ```
248
-
249
- Notes on the semantics:
250
-
251
- - Members with `Administrator` implicitly satisfy every check.
252
- - `RequiresUserPermissions` passes for interactions received outside of a guild, since there are no guild permissions to
253
- check. Combine it with `RequiresGuildContext` when the method must be guild-only.
254
- - `RequiresClientPermissions` passes when `app_permissions` is absent from the payload, since there is nothing to check
255
- against.
256
-
257
- #### `Enumerable` / `EnumerableMethod`
258
-
259
- Control whether a field or a method shows up in `Object.keys`, `JSON.stringify`, and console output.
260
-
261
- ```typescript
262
- import { Command, Enumerable } from '@wolfstar/http-framework';
263
-
264
- export class UserCommand extends Command {
265
- @Enumerable(false)
266
- declare public cache: Map<string, string>;
267
-
268
- public constructor(context: Command.LoaderContext, options: Command.Options) {
269
- super(context, options);
270
- this.cache = new Map();
271
- }
272
- }
273
- ```
274
-
275
- > **Note**: `Enumerable` installs a setter on the prototype, which is bypassed by the `Object.defineProperty` call that
276
- > `useDefineForClassFields` (enabled by `@sapphire/ts-config`, and the default from `ES2022` onwards) emits for class
277
- > fields. Mark the field as `declare` so no field definition is emitted, and assign it in the constructor.
278
-
279
- #### Building your own decorators
280
-
281
- `createClassDecorator`, `createMethodDecorator`, `createProxy`, and `createFunctionPrecondition` are the primitives the
282
- decorators above — and the `Register*` ones — are built on, and are exported so you can build your own.
283
-
284
- ```typescript
285
- import { Command, createFunctionPrecondition } from '@wolfstar/http-framework';
286
-
287
- export const RequiresOwner = createFunctionPrecondition(
288
- (interaction: Command.ChatInputInteraction) => interaction.user.id === process.env.OWNER_ID,
289
- (interaction: Command.ChatInputInteraction) => interaction.reply({ content: 'Owner only.' })
290
- );
291
- ```
292
-
293
- > **Note**: `createFunctionPrecondition` replaces the decorated method with an `async` one, so a decorated method always
294
- > returns a `Promise`, even when both the precondition and the method are synchronous.
295
-
296
177
  ### Client
297
178
 
298
179
  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.
@@ -398,7 +279,8 @@ The Hot Module Reloading events are listed in [their own section](#hot-module-re
398
279
  Listeners declared as pieces can use the enum too:
399
280
 
400
281
  ```typescript
401
- import { ApplyOptions, Events, Listener } from '@wolfstar/http-framework';
282
+ import { ApplyOptions } from '@wolfstar/decorators';
283
+ import { Events, Listener } from '@wolfstar/http-framework';
402
284
 
403
285
  @ApplyOptions<Listener.Options>({ event: Events.CommandError })
404
286
  export class UserListener extends Listener {
@@ -1,4 +1,4 @@
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";
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";
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";
@@ -2701,293 +2701,6 @@ export declare class StringIdParser implements IIdParser {
2701
2701
  run(customId: string): IdParserRead | null;
2702
2702
  }
2703
2703
  //#endregion
2704
- //#region src/lib/decorators/ApplyOptions.d.ts
2705
- /**
2706
- * The constructor signature shared by every `Piece` of `@wolfstar/http-framework`, such as `Command`, `Listener`, and
2707
- * `InteractionHandler`.
2708
- */
2709
- export type PieceConstructor<Options extends PieceOptions$1 = PieceOptions$1> = new (context: LoaderPieceContext$1, options?: Options) => unknown;
2710
- /**
2711
- * Decorator that sets the options of a `Piece`, such as a `Command`, a `Listener`, or an `InteractionHandler`.
2712
- *
2713
- * @remarks The options are merged on top of the ones the piece was constructed with, so a piece that also passes
2714
- * options through `super(context, options)` will have the decorator's values win on conflicting keys.
2715
- * @remarks Apply this decorator above (outside of) any other class decorator that keys metadata by class identity,
2716
- * such as {@linkcode RegisterCommand} — as in the example below. This decorator returns a `Proxy` wrapping the class,
2717
- * so a decorator applied above it (running after it, and therefore registering against the proxy) would register
2718
- * metadata that instances constructed from the exported class — whose `.constructor` still resolves to the original,
2719
- * unproxied class — can never be looked up by.
2720
- * @param optionsOrFn The options to pass to the piece's constructor, or a function that builds them from the loader
2721
- * context.
2722
- * @returns A class decorator.
2723
- * @example
2724
- * ```typescript
2725
- * import { ApplyOptions, Command, RegisterCommand } from '@wolfstar/http-framework';
2726
- *
2727
- * (at)ApplyOptions<Command.Options>({ name: 'ping', enabled: true })
2728
- * (at)RegisterCommand({ name: 'ping', description: 'A simple ping pong command' })
2729
- * export class UserCommand extends Command {
2730
- * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2731
- * return interaction.reply({ content: 'Pong!' });
2732
- * }
2733
- * }
2734
- * ```
2735
- * @example
2736
- * ```typescript
2737
- * (at)ApplyOptions<Command.Options>(({ name }) => ({ name: name.toLowerCase() }))
2738
- * export class UserCommand extends Command {}
2739
- * ```
2740
- */
2741
- export declare function ApplyOptions<Options extends PieceOptions$1 = PieceOptions$1>(optionsOrFn: Options | ((context: LoaderPieceContext$1) => Options)): ClassDecorator;
2742
- //#endregion
2743
- //#region src/lib/decorators/Enumerable.d.ts
2744
- /**
2745
- * Decorator that sets the `enumerable` property of a class field to the given value.
2746
- *
2747
- * @remarks The decorator installs a setter on the prototype, which is bypassed by the `Object.defineProperty` call
2748
- * that `useDefineForClassFields` (enabled by `@sapphire/ts-config`, and the default from `ES2022` onwards) emits for
2749
- * class fields. Mark the field as `declare` so no field definition is emitted, and assign it in the constructor.
2750
- * @param value Whether the property should be enumerable or not.
2751
- * @returns A property decorator.
2752
- * @example
2753
- * ```typescript
2754
- * import { Command, Enumerable } from '@wolfstar/http-framework';
2755
- *
2756
- * export class UserCommand extends Command {
2757
- * (at)Enumerable(false)
2758
- * declare public cache: Map<string, string>;
2759
- *
2760
- * public constructor(context: Command.LoaderContext, options: Command.Options) {
2761
- * super(context, options);
2762
- * this.cache = new Map();
2763
- * }
2764
- * }
2765
- * ```
2766
- */
2767
- export declare function Enumerable(value: boolean): (target: unknown, key: string) => void;
2768
- /**
2769
- * Decorator that sets the `enumerable` property of a class method to the given value.
2770
- *
2771
- * @param value Whether the method should be enumerable or not.
2772
- * @returns A method decorator.
2773
- * @example
2774
- * ```typescript
2775
- * import { Command, EnumerableMethod } from '@wolfstar/http-framework';
2776
- *
2777
- * export class UserCommand extends Command {
2778
- * (at)EnumerableMethod(true)
2779
- * public getCacheKey(id: string) {
2780
- * return `user:${id}`;
2781
- * }
2782
- * }
2783
- * ```
2784
- */
2785
- export declare function EnumerableMethod(value: boolean): (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;
2786
- //#endregion
2787
- //#region src/lib/decorators/RequiresContext.d.ts
2788
- /**
2789
- * The fallback invoked when a context precondition is not met. It receives the same arguments as the decorated method.
2790
- */
2791
- export type ContextFallback = (...args: any[]) => unknown;
2792
- /**
2793
- * Decorator that only runs the decorated method when the interaction was received from a guild.
2794
- *
2795
- * @param fallback The fallback to run when the interaction did not come from a guild. Defaults to a no-op, which
2796
- * silently skips the method.
2797
- * @returns A method decorator.
2798
- * @example
2799
- * ```typescript
2800
- * import { Command, RegisterCommand, RequiresGuildContext } from '@wolfstar/http-framework';
2801
- *
2802
- * (at)RegisterCommand({ name: 'kick', description: 'Kicks a member' })
2803
- * export class UserCommand extends Command {
2804
- * (at)RequiresGuildContext((interaction: Command.ChatInputInteraction) =>
2805
- * interaction.reply({ content: 'This command can only be used in a server.' })
2806
- * )
2807
- * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2808
- * return interaction.reply({ content: `Hello from ${interaction.guildId}!` });
2809
- * }
2810
- * }
2811
- * ```
2812
- */
2813
- export declare function RequiresGuildContext(fallback?: ContextFallback): MethodDecorator;
2814
- /**
2815
- * Decorator that only runs the decorated method when the interaction was **not** received from a guild, that is, from a
2816
- * DM or from a user-installed app context.
2817
- *
2818
- * @param fallback The fallback to run when the interaction came from a guild. Defaults to a no-op, which silently skips
2819
- * the method.
2820
- * @returns A method decorator.
2821
- * @example
2822
- * ```typescript
2823
- * import { Command, RegisterCommand, RequiresDMContext } from '@wolfstar/http-framework';
2824
- *
2825
- * (at)RegisterCommand({ name: 'private', description: 'Only usable outside of servers' })
2826
- * export class UserCommand extends Command {
2827
- * (at)RequiresDMContext((interaction: Command.ChatInputInteraction) =>
2828
- * interaction.reply({ content: 'This command cannot be used in a server.' })
2829
- * )
2830
- * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2831
- * return interaction.reply({ content: 'Hello!' });
2832
- * }
2833
- * }
2834
- * ```
2835
- */
2836
- export declare function RequiresDMContext(fallback?: ContextFallback): MethodDecorator;
2837
- //#endregion
2838
- //#region src/lib/utils/permissions.d.ts
2839
- /**
2840
- * The name of a Discord permission flag, as defined by {@linkcode PermissionFlagsBits}.
2841
- */
2842
- export type PermissionString = keyof typeof PermissionFlagsBits;
2843
- /**
2844
- * Anything that can be resolved into a permission bitfield:
2845
- *
2846
- * - A `bigint`, such as the values of {@linkcode PermissionFlagsBits}.
2847
- * - A {@linkcode PermissionString}, such as `'BanMembers'`.
2848
- * - An arbitrarily nested (readonly) array of the above.
2849
- */
2850
- export type PermissionResolvable = bigint | PermissionString | readonly PermissionResolvable[];
2851
- /**
2852
- * Resolves any {@linkcode PermissionResolvable} into a single permission bitfield.
2853
- *
2854
- * @param resolvable The value to resolve.
2855
- * @returns The resolved bitfield.
2856
- * @throws `TypeError` If a string was given that is not a known permission flag.
2857
- * @example
2858
- * ```typescript
2859
- * resolvePermissions(['BanMembers', PermissionFlagsBits.KickMembers]);
2860
- * // 6n
2861
- * ```
2862
- */
2863
- export declare function resolvePermissions(resolvable: PermissionResolvable): bigint;
2864
- /**
2865
- * Computes the permissions from `required` that are missing in `granted`.
2866
- *
2867
- * @remarks Members with the `Administrator` permission implicitly have every permission, so this returns `0n` when
2868
- * `granted` contains it.
2869
- * @param granted The bitfield of the permissions that were granted.
2870
- * @param required The bitfield of the permissions that are required.
2871
- * @returns The bitfield of the missing permissions, `0n` if none are missing.
2872
- */
2873
- export declare function getMissingPermissions(granted: bigint, required: bigint): bigint;
2874
- /**
2875
- * Converts a permission bitfield into the list of the flag names it contains.
2876
- *
2877
- * @param bits The bitfield to convert.
2878
- * @returns The names of the permissions contained in the bitfield.
2879
- */
2880
- export declare function toPermissionNames(bits: bigint): PermissionString[];
2881
- //#endregion
2882
- //#region src/lib/decorators/RequiresPermissions.d.ts
2883
- /**
2884
- * Decorator that only runs the decorated method when the application has all of the given permissions in the channel
2885
- * the interaction was sent from, as reported by the interaction's `app_permissions` field.
2886
- *
2887
- * @remarks When the fallback is omitted, a {@linkcode PreconditionError} identified by
2888
- * {@linkcode Identifiers.PreconditionClientPermissions} is thrown, which the client emits as `commandError` (or
2889
- * `interactionHandlerError`) for a `Listener` to turn into a user-facing reply.
2890
- * @param permissions The permissions the application must have.
2891
- * @returns A method decorator.
2892
- * @example
2893
- * ```typescript
2894
- * import { Command, RegisterCommand, RequiresClientPermissions } from '@wolfstar/http-framework';
2895
- *
2896
- * (at)RegisterCommand({ name: 'purge', description: 'Deletes messages' })
2897
- * export class UserCommand extends Command {
2898
- * (at)RequiresClientPermissions('ManageMessages')
2899
- * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2900
- * return interaction.reply({ content: 'Purging!' });
2901
- * }
2902
- * }
2903
- * ```
2904
- */
2905
- export declare function RequiresClientPermissions(...permissions: PermissionResolvable[]): MethodDecorator;
2906
- /**
2907
- * Decorator that only runs the decorated method when the invoking user has all of the given permissions in the channel
2908
- * the interaction was sent from.
2909
- *
2910
- * @remarks Interactions received outside of a guild carry no member permissions, so the check passes for them. Pair
2911
- * this decorator with {@linkcode RequiresGuildContext} when the method must also be guild-only.
2912
- * @remarks When the fallback is omitted, a {@linkcode PreconditionError} identified by
2913
- * {@linkcode Identifiers.PreconditionUserPermissions} is thrown, which the client emits as `commandError` (or
2914
- * `interactionHandlerError`) for a `Listener` to turn into a user-facing reply.
2915
- * @param permissions The permissions the invoking user must have.
2916
- * @returns A method decorator.
2917
- * @example
2918
- * ```typescript
2919
- * import { Command, RegisterCommand, RequiresUserPermissions } from '@wolfstar/http-framework';
2920
- *
2921
- * (at)RegisterCommand({ name: 'ban', description: 'Bans a member' })
2922
- * export class UserCommand extends Command {
2923
- * (at)RequiresUserPermissions('BanMembers')
2924
- * public override chatInputRun(interaction: Command.ChatInputInteraction) {
2925
- * return interaction.reply({ content: 'Banned!' });
2926
- * }
2927
- * }
2928
- * ```
2929
- */
2930
- export declare function RequiresUserPermissions(...permissions: PermissionResolvable[]): MethodDecorator;
2931
- //#endregion
2932
- //#region src/lib/decorators/utils.d.ts
2933
- /**
2934
- * Utility to make a method decorator from a function.
2935
- *
2936
- * @remarks The decorator is returned with the signature it was given, rather than widened to `MethodDecorator`, so a
2937
- * decorator built on top of this keeps whatever constraint it declares on its target.
2938
- * @param fn The method to decorate.
2939
- * @returns The decorator.
2940
- * @example
2941
- * ```typescript
2942
- * // Enumerable function that will not append the property to the prototype:
2943
- * function enumerableMethod(value: boolean) {
2944
- * return createMethodDecorator((_target: unknown, _propertyKey: string, descriptor: PropertyDescriptor) => {
2945
- * descriptor.enumerable = value;
2946
- * });
2947
- * }
2948
- * ```
2949
- */
2950
- export declare function createMethodDecorator<TFunction extends (...args: any[]) => unknown>(fn: TFunction): TFunction;
2951
- /**
2952
- * Utility to make a class decorator from a function.
2953
- *
2954
- * @remarks The decorator is returned with the signature it was given, rather than widened to `ClassDecorator`, so a
2955
- * decorator built on top of this keeps whatever constraint it declares on its target. This is what lets
2956
- * {@linkcode RegisterCommand} and its siblings reject a target that is not a `Command`.
2957
- * @param fn The class to decorate.
2958
- * @returns The decorator.
2959
- * @see {@linkcode ApplyOptions}
2960
- */
2961
- export declare function createClassDecorator<TFunction extends (...args: any[]) => unknown>(fn: TFunction): TFunction;
2962
- /**
2963
- * Creates a new proxy to efficiently add properties to a class without creating subclasses.
2964
- *
2965
- * @param target The constructor of the class to modify.
2966
- * @param handler The handler function to modify the constructor behavior for the target.
2967
- * @returns The proxy.
2968
- */
2969
- export declare function createProxy<T extends object>(target: T, handler: Omit<ProxyHandler<T>, 'get'>): T;
2970
- /**
2971
- * Utility to make a method decorator with lighter syntax and inferred types.
2972
- *
2973
- * @remarks The decorated method is replaced by an `async` one, so it always returns a `Promise`, even when both the
2974
- * precondition and the original method are synchronous.
2975
- * @param precondition The predicate to run before the decorated method. It receives the same arguments as the method
2976
- * and is called with the same `this`.
2977
- * @param fallback The fallback to run when the precondition is not met. Defaults to a no-op returning `undefined`.
2978
- * @returns The decorator.
2979
- * @example
2980
- * ```typescript
2981
- * import { Command, RegisterCommand, createFunctionPrecondition } from '@wolfstar/http-framework';
2982
- *
2983
- * const RequiresOwner = createFunctionPrecondition(
2984
- * (interaction: Command.ChatInputInteraction) => interaction.user.id === process.env.OWNER_ID,
2985
- * (interaction: Command.ChatInputInteraction) => interaction.reply({ content: 'Owner only.' })
2986
- * );
2987
- * ```
2988
- */
2989
- export declare function createFunctionPrecondition(precondition: (...args: any[]) => boolean | Promise<boolean>, fallback?: (...args: any[]) => unknown): MethodDecorator;
2990
- //#endregion
2991
2704
  //#region src/lib/errors/UserError.d.ts
2992
2705
  /**
2993
2706
  * The UserError class to be thrown and emitted by the pieces of the framework.
@@ -3349,5 +3062,49 @@ export declare class Logger implements ILogger {
3349
3062
  */
3350
3063
  export type LoggerConsoleMethod = 'debug' | 'error' | 'info' | 'trace' | 'warn';
3351
3064
  //#endregion
3065
+ //#region src/lib/utils/permissions.d.ts
3066
+ /**
3067
+ * The name of a Discord permission flag, as defined by {@linkcode PermissionFlagsBits}.
3068
+ */
3069
+ export type PermissionString = keyof typeof PermissionFlagsBits;
3070
+ /**
3071
+ * Anything that can be resolved into a permission bitfield:
3072
+ *
3073
+ * - A `bigint`, such as the values of {@linkcode PermissionFlagsBits}.
3074
+ * - A {@linkcode PermissionString}, such as `'BanMembers'`.
3075
+ * - An arbitrarily nested (readonly) array of the above.
3076
+ */
3077
+ export type PermissionResolvable = bigint | PermissionString | readonly PermissionResolvable[];
3078
+ /**
3079
+ * Resolves any {@linkcode PermissionResolvable} into a single permission bitfield.
3080
+ *
3081
+ * @param resolvable The value to resolve.
3082
+ * @returns The resolved bitfield.
3083
+ * @throws `TypeError` If a string was given that is not a known permission flag.
3084
+ * @example
3085
+ * ```typescript
3086
+ * resolvePermissions(['BanMembers', PermissionFlagsBits.KickMembers]);
3087
+ * // 6n
3088
+ * ```
3089
+ */
3090
+ export declare function resolvePermissions(resolvable: PermissionResolvable): bigint;
3091
+ /**
3092
+ * Computes the permissions from `required` that are missing in `granted`.
3093
+ *
3094
+ * @remarks Members with the `Administrator` permission implicitly have every permission, so this returns `0n` when
3095
+ * `granted` contains it.
3096
+ * @param granted The bitfield of the permissions that were granted.
3097
+ * @param required The bitfield of the permissions that are required.
3098
+ * @returns The bitfield of the missing permissions, `0n` if none are missing.
3099
+ */
3100
+ export declare function getMissingPermissions(granted: bigint, required: bigint): bigint;
3101
+ /**
3102
+ * Converts a permission bitfield into the list of the flag names it contains.
3103
+ *
3104
+ * @param bits The bitfield to convert.
3105
+ * @returns The names of the permissions contained in the bitfield.
3106
+ */
3107
+ export declare function toPermissionNames(bits: bigint): PermissionString[];
3108
+ //#endregion
3352
3109
  export { type AbortError, type AddFiles, AliasPiece, type AliasPieceOptions, AliasStore, type AsyncDiscordResult, AutocompleteInteraction$1 as AutocompleteInteraction, type DiscordError, type DiscordResult, Interaction$1 as Interaction, LoaderError, type LoaderPieceContext, MessageComponentStringSelectInteraction as MessageComponentSelectMenuInteraction, MissingExportsError, type NonPingInteraction, Piece, type PieceContext, type PieceOptions, Store, type StoreOptions, StoreRegistry, type StoreRegistryEntries, container };
3353
3110
  //# 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/hmr/HotModuleReloader.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/logger/ILogger.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","../../src/lib/utils/logger/Logger.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;;;;;;;;;;;;;;;;;;;;;;;;wBC/PlB,gBAAgB,gBAAgB,QAAQ,UAAU,QAAQ,SAAS,MAAM,yBAAyB,eAAW,eAC/D,QAAQ;;;;;;;cCfzD,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;;;;;;;;;;;;;;;;;;;;wBC/Df,uBAAuB,gBAAgB,QAAQ,UAAU,QAAQ,SAAS,MAAM,2BAA2B,eAAW,QAC9E,QAAQ,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBCQxD,mBAAmB,gBAAgB,QAAQ,UAAU,QAAQ,SAC5E,MAAM,yBAAyB,gBAC/B,uCAAmC,QAEoB,QAAQ,UAAQ;;;;;;;;;;;;;;;;;;;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OA;;;;;;;;;;qBC5CW,8BAA8B,eAAe;;;;;;;;;EASzC,OAAO,OAAO,cAAc,OAAO,UAAO,mCAAA;;;;;;;;;;;;;EAwB1C,SAAS,OAAO,cAAc,OAAO,UAAO,mCAAA;;;;;;;;;qBC9BhD,+BAA+B,eAAe;;;;;;;;;EAS1C,OAAO,QAAQ,eAAe,OAAO;;;;;;;;;EAkBrC,SAAS,QAAQ,eAAe,OAAO;;;;;;;;;;;;;qBC5B3C,kBAAkB;;;;EAIvB,OAAO;;;;EAKd,YAAmB,QAAO;EAInB,IAAI,OAAO;EAIX,SAAS;EAIT,SAAS;EAIT,QAAQ;EAIR,QAAQ;EAIR,SAAS;EAIT,SAAS;EAIT,MAAM,OAAO,aAAa;;;;4BAUP,QAAM,IAAA,UAAA;;;;;;;YAerB"}
1
+ {"version":3,"file":"index.d.ts","names":["Store","_$______structures_CommandStore_js0.CommandStore","Response","Response","AutocompleteInteraction","AutocompleteInteraction","Interaction","AutocompleteInteraction","_$___interactions_index_js0.ApplicationCommandRegistryEntry","Piece","Piece","Piece","Piece","Store","Store","Piece","Store","NetListenOptions"],"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/hmr/HotModuleReloader.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/logger/ILogger.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","../../src/lib/utils/logger/Logger.ts","../../src/lib/utils/permissions.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;;;;;;;;;;;;;;;;;;;;;;;;wBC/PlB,gBAAgB,gBAAgB,QAAQ,UAAU,QAAQ,SAAS,MAAM,yBAAyB,eAAW,eAC/D,QAAQ;;;;;;;cCfzD,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;;;;;;;;;;;;;;;;;;;;wBC/Df,uBAAuB,gBAAgB,QAAQ,UAAU,QAAQ,SAAS,MAAM,2BAA2B,eAAW,QAC9E,QAAQ,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBCQxD,mBAAmB,gBAAgB,QAAQ,UAAU,QAAQ,SAC5E,MAAM,yBAAyB,gBAC/B,uCAAmC,QAEoB,QAAQ,UAAQ;;;;;;;;;;;;;;;;;;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