remove unneeded check

This commit is contained in:
Lee 2024-07-04 05:49:47 +01:00
parent e873988c47
commit 7f09c6d06c

View File

@ -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;