remove unneeded check
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 38s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 38s
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
|
if (guild == null || !event.getComponentId().startsWith("logs:list:")) { // Invalid button
|
||||||
return;
|
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(":");
|
String[] split = event.getComponentId().split(":");
|
||||||
if (split.length != 3) {
|
if (split.length != 3) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user