Skip to content

Commit cb40369

Browse files
authored
fix(Listener): fixed compile issues on TS 4.5 (#329)
1 parent 639dc65 commit cb40369

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/structures/Listener.ts

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export abstract class Listener<E extends keyof ClientEvents | symbol = '', O ext
120120
}
121121

122122
private async _run(...args: unknown[]) {
123+
// @ts-expect-error This seems to be a TS bug, so for now ts-expect-error it
123124
const result = await fromAsync(() => this.run(...args));
124125
if (isErr(result)) {
125126
this.container.client.emit(Events.ListenerError, result.error, { piece: this });

0 commit comments

Comments
 (0)