Skip to content

Commit

Permalink
Catch errors in sending messages
Browse files Browse the repository at this point in the history
closes #271
  • Loading branch information
iBlitzkriegi committed Oct 2, 2020
1 parent c293d76 commit 2963eed
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ protected void execute(Event e) {
Vixio.getErrorHandler().needsPerm(bot, "send message", x.getPermission().getName());
} catch (RateLimitedException e1) {
Vixio.getErrorHandler().cantOpenPrivateChannel();
} catch (Exception x ){
Vixio.getErrorHandler().cantOpenPrivateChannel();
}
}

Expand Down

0 comments on commit 2963eed

Please sign in to comment.