Skip to content

Commit

Permalink
fix(MessageHandler): take advantage of allowEdit properly (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Aug 23, 2022
1 parent c27a450 commit 9b84286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/message_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class MessageHandler<T extends object> extends Handler {
// deno-lint-ignore require-await
async check({ event }: HandlerFuncParams) {
if (
this.params?.allowEdit == false && event instanceof EditedMessageEvent
!this.params?.allowEdit && event instanceof EditedMessageEvent
) {
return false;
}
Expand Down

0 comments on commit 9b84286

Please sign in to comment.