Skip to content
This repository was archived by the owner on May 22, 2022. It is now read-only.

Commit 3ff05ce

Browse files
committed
fix: bind this parameter when calling the run method, oops
1 parent fe6946a commit 3ff05ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/listeners/InteractionCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class UserEvent extends Listener {
5050

5151
emitter.emit( events.preRun, payload )
5252
try {
53-
await handler( interaction as any ) // eslint-disable-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
53+
await handler.bind( applicationCommand.command )( interaction as any ) // eslint-disable-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
5454
emitter.emit( events.success, payload )
5555
} catch {
5656
emitter.emit( events.error, payload )

0 commit comments

Comments
 (0)