add avatar to member join log
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 36s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 36s
This commit is contained in:
parent
45755503a7
commit
52223b5233
@ -46,6 +46,7 @@ public class MemberListener implements EventListener {
|
||||
.appendLine("Username: %s".formatted(user.getDiscordUser().getName()), true)
|
||||
.appendLine("Account Age: <t:%s:R>".formatted(user.getDiscordUser().getTimeCreated().toEpochSecond()), true)
|
||||
.build())
|
||||
.setThumbnail(user.getDiscordUser().getEffectiveAvatarUrl())
|
||||
.build());
|
||||
}
|
||||
|
||||
@ -66,7 +67,7 @@ public class MemberListener implements EventListener {
|
||||
if (user.getDiscordUser().isBot()) return;
|
||||
|
||||
logFeature.sendLog(guild, LogType.MEMBER_NICKNAME_UPDATE, EmbedUtils.genericEmbed()
|
||||
.setDescription(new EmbedDescriptionBuilder("Member Nickname Changed")
|
||||
.setDescription(new EmbedDescriptionBuilder("Member Nickname Updated")
|
||||
.appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true)
|
||||
.appendLine("Old Nickname: `%s`".formatted(oldName == null ? user.getName() : oldName), true)
|
||||
.appendLine("New Nickname: `%s`".formatted(newName == null ? "Removed Nickname" : newName), true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user