Skip to content

Commit

Permalink
Fixed a bug with async in ban command.
Browse files Browse the repository at this point in the history
  • Loading branch information
mleandrojr committed Apr 19, 2024
1 parent d4bae83 commit 8672425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/Ban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default class Ban extends Command {
};

const contextUser = new UserContext(userType, this.context.chat);
if (contextUser.ban()) {
if (await contextUser.ban()) {
this.saveBan(contextUser, reason);
}

Expand Down

0 comments on commit 8672425

Please sign in to comment.