bakit 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/BakitClient-BWxRFtSg.d.ts +199 -0
- package/dist/command/index.d.ts +3 -0
- package/dist/command/index.js +464 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +1020 -0
- package/package.json +57 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { A as Arg, d as ArgumentOptions, b as ArgumentType, a as BakitClient, B as BakitClientOptions, c as BaseArgumentOptions, i as BaseCommandEntry, f as BaseCommandEntryOptions, j as BaseCommandGroupEntry, t as BaseContext, u as ChatInputContext, q as ChatInputContextSendOptions, o as Command, n as CommandConstructor, m as CommandEntry, k as CommandGroupEntry, e as CommandHook, C as CommandHookMethod, p as CommandRegistry, z as CommandSyntaxError, y as CommandSyntaxErrorOptions, x as CommandSyntaxErrorType, w as Context, s as ContextSendOptions, g as CreateOptions, G as GetSyntaxErrorMessageFunction, h as HOOKS_KEY, H as HookExecutionState, I as IntegerArgumentOptions, M as MemberArgumentOptions, v as MessageContext, r as MessageContextSendOptions, N as NumberArgumentOptions, R as RootCommandEntry, S as StringArgumentOptions, l as SubcommandEntry, U as UserArgumentOptions } from './BakitClient-BWxRFtSg.js';
|
|
2
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
3
|
+
import 'discord.js';
|
|
4
|
+
import 'type-fest';
|
|
5
|
+
|
|
6
|
+
declare function extractId(value: string): string | null;
|
|
7
|
+
|
|
8
|
+
type States = Record<string | symbol, unknown>;
|
|
9
|
+
declare class StateBox {
|
|
10
|
+
private static readonly STATES_KEY;
|
|
11
|
+
static storage: AsyncLocalStorage<States>;
|
|
12
|
+
private static getState;
|
|
13
|
+
static run<R>(fn: () => R, store?: {}): R;
|
|
14
|
+
static wrap<R>(fn: () => R): () => R;
|
|
15
|
+
static use<T extends object>(defaultValue?: unknown): (target: T, key: keyof T) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { StateBox, type States, extractId };
|