Skip to content

Commit

Permalink
Update Locutus.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Jun 26, 2024
1 parent fe959f3 commit a0e2452
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/link/locutus/discord/Locutus.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a0e2452

Please sign in to comment.