forked from Fascinated/Bat
yes!
This commit is contained in:
parent
d01c7d4965
commit
6dc801dda6
@ -61,11 +61,12 @@ public class LookupUserCommand extends BatCommand {
|
||||
for (User.UserFlag flag : target.getFlags()) {
|
||||
flags.append("`").append(flag.getName()).append("`, ");
|
||||
}
|
||||
String name = target.getGlobalName() == null ? target.getName() : target.getGlobalName().replaceAll("`", "");
|
||||
target.retrieveProfile().queue(profile -> event.replyEmbeds(EmbedUtils.genericEmbed()
|
||||
.setDescription(new EmbedDescriptionBuilder("User Lookup")
|
||||
.appendLine("Name: %s".formatted(target.getGlobalName()), true)
|
||||
.appendLine("Username: %s".formatted(target.getName()), true)
|
||||
.appendLine("ID: %s".formatted(target.getId()), true)
|
||||
.appendLine("Name: `%s`".formatted(name), true)
|
||||
.appendLine("Username: `%s`".formatted(target.getName()), true)
|
||||
.appendLine("ID: `%s`".formatted(target.getId()), true)
|
||||
.appendLine("Flags: %s".formatted(flags.toString().isEmpty() ? "None" : flags.substring(0, flags.length() - 2)), true)
|
||||
.appendLine("Joined Discord: <t:%s:R>".formatted(target.getTimeCreated().toEpochSecond()), true)
|
||||
.appendLine("Avatar: %s".formatted(target.getAvatar() == null ? "None"
|
||||
|
Loading…
Reference in New Issue
Block a user