Skip to content

Commit

Permalink
fix: listener
Browse files Browse the repository at this point in the history
  • Loading branch information
louiszn committed Oct 22, 2024
1 parent 53e8171 commit 651409d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hatsune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Hatsune<R extends boolean = boolean> extends Client<R> {

const method = listener.once ? "once" : "on";

this[method](listener.name, listener.execute!.bind(this));
this[method](listener.name, listener.execute!.bind(listener));
}

for (const command of await getCommands()) {
Expand Down

0 comments on commit 651409d

Please sign in to comment.