From ee1b2e0ae05779f2433322e9d489373c133c619d Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 4 Jul 2024 09:01:56 -0400 Subject: [PATCH] lol --- src/main/java/cc/fascinated/bat/service/CommandService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/service/CommandService.java b/src/main/java/cc/fascinated/bat/service/CommandService.java index 307ac7e..43d5ae3 100644 --- a/src/main/java/cc/fascinated/bat/service/CommandService.java +++ b/src/main/java/cc/fascinated/bat/service/CommandService.java @@ -95,7 +95,7 @@ public class CommandService extends ListenerAdapter { // Unregister all commands that Discord has but we don't jda.retrieveCommands().complete().forEach(command -> { if (commands.containsKey(command.getName()) - || commands.get(command.getName()).getInfo().isBotOwnerOnly()) { + && commands.get(command.getName()).getInfo().isBotOwnerOnly()) { jda.deleteCommandById(command.getId()).complete(); // Unregister the command on Discord log.info("Unregistered hidden command \"{}\" from Discord", command.getName()); return;