Skip to content

Commit 28f7604

Browse files
authored
feat: expose commandkit instance
1 parent d39a588 commit 28f7604

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/commandkit/src/CommandKit.ts

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export interface CommandKitConfiguration {
2929
getMessageCommandPrefix: (message: Message) => Awaitable<string | string[]>;
3030
}
3131

32+
// @ts-ignore
33+
export let commandkit: Commandkit
34+
3235
export class CommandKit extends EventEmitter {
3336
#started = false;
3437
public readonly eventInterceptor: EventInterceptor;
@@ -97,6 +100,9 @@ export class CommandKit extends EventEmitter {
97100
if (!CommandKit.instance) {
98101
CommandKit.instance = this;
99102
}
103+
104+
// @ts-ignore
105+
commandkit = CommandKit.instance;
100106
}
101107

102108
/**

0 commit comments

Comments
 (0)