Skip to content

Commit c5ff15d

Browse files
committed
fix: event.run types
1 parent 8631ff0 commit c5ff15d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'jellycommands': patch
3+
---
4+
5+
fix event.run types

packages/jellycommands/src/events/Event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Awaitable<T> = Promise<T> | T;
88
export type EventCallback<EventName extends keyof ClientEvents> = (
99
instance: { client: JellyCommands },
1010
...args: ClientEvents[EventName]
11-
) => Awaitable<void>;
11+
) => Awaitable<void | any>;
1212

1313
export class Event<T extends keyof ClientEvents> {
1414
public readonly options: Required<EventOptions<T>>;

0 commit comments

Comments
 (0)