forked from Fascinated/Bat
remove unneeded check
This commit is contained in:
parent
e873988c47
commit
7f09c6d06c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user