diff --git a/src/main/java/link/locutus/discord/Locutus.java b/src/main/java/link/locutus/discord/Locutus.java index c93cfc4d..3926a88a 100644 --- a/src/main/java/link/locutus/discord/Locutus.java +++ b/src/main/java/link/locutus/discord/Locutus.java @@ -1144,7 +1144,8 @@ public void onButtonInteraction(@NotNull ButtonInteractionEvent event) { Button button = event.getButton(); System.out.println("Button press " + button.getId() + " | " + button.getLabel()); - if (button.getId().equalsIgnoreCase(" ") && message != null) { + + if (button.getId().equalsIgnoreCase("")) { RateLimitUtil.queue(message.delete()); return; }