diff --git a/src/main/java/me/chayapak1/chomens_bot/Main.java b/src/main/java/me/chayapak1/chomens_bot/Main.java index f85474f..d46c9ee 100644 --- a/src/main/java/me/chayapak1/chomens_bot/Main.java +++ b/src/main/java/me/chayapak1/chomens_bot/Main.java @@ -226,7 +226,7 @@ public class Main { bot.stop(); } - jda.shutdownNow(); + if (jda != null) jda.shutdownNow(); if (discordEnabled) { for (int i = 0; i < 150; i++) {