From 7f09c6d06c3281a6f212049290a122f57c66acf4 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 05:49:47 +0100 Subject: [PATCH] remove unneeded check --- .../bat/features/logging/command/ListSubCommand.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/logging/command/ListSubCommand.java b/src/main/java/cc/fascinated/bat/features/logging/command/ListSubCommand.java index 6ec1fcd..7e9ebc6 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/command/ListSubCommand.java +++ b/src/main/java/cc/fascinated/bat/features/logging/command/ListSubCommand.java @@ -56,10 +56,6 @@ public class ListSubCommand extends BatSubCommand implements EventListener { if (guild == null || !event.getComponentId().startsWith("logs:list:")) { // Invalid button return; } - if (!event.getInteraction().getUser().getId().equals(user.getId())) { - event.replyEmbeds(EmbedUtils.errorEmbed().setDescription("You cannot interact with this button").build()).setEphemeral(true).queue(); - return; - } String[] split = event.getComponentId().split(":"); if (split.length != 3) { return;