Skip to content

Commit

Permalink
[BUG] Don't try to send discord messages if the bot failed to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
hypherionmc committed Feb 25, 2023
1 parent 87cf431 commit 43b54d3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ public DiscordMessage build() {
}

public void sendMessage() {
if (controller.get_jda() == null)
return;

try {
if (messageType == MessageType.CONSOLE) {
sendConsoleMessage();
Expand Down

0 comments on commit 43b54d3

Please sign in to comment.