fix double interaction reply
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 57s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 57s
This commit is contained in:
parent
bb81c098b2
commit
b4f4a12da8
@ -39,16 +39,6 @@ public class UserSubCommand extends BatCommand {
|
|||||||
if (option == null) {
|
if (option == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (option.getAsUser().isBot()) {
|
|
||||||
event.replyEmbeds(EmbedUtils.errorEmbed()
|
|
||||||
.setDescription("You cannot view the ScoreSaber profile for a Bot")
|
|
||||||
.build())
|
|
||||||
.setEphemeral(true)
|
|
||||||
.queue();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
BatUser target = userService.getUser(option.getAsUser().getId());
|
BatUser target = userService.getUser(option.getAsUser().getId());
|
||||||
if (target == null) {
|
if (target == null) {
|
||||||
event.replyEmbeds(EmbedUtils.errorEmbed()
|
event.replyEmbeds(EmbedUtils.errorEmbed()
|
||||||
|
Loading…
Reference in New Issue
Block a user