Skip to content

Commit

Permalink
avoid infinite stacktrace if message does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed May 6, 2024
1 parent 6ff018e commit 6cfce35
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private Message updateMessage() throws IllegalStateException {
throw e;
}
} catch (ExecutionException e) {
currentMessage = null;
throw new RuntimeException(e);
} catch (InterruptedException e) {
JDA.Status status = channel.getJDA().getStatus();
Expand Down

0 comments on commit 6cfce35

Please sign in to comment.