forked from Fascinated/Bat
add avatar to member join log
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("Username: %s".formatted(user.getDiscordUser().getName()), true)
|
||||||
.appendLine("Account Age: <t:%s:R>".formatted(user.getDiscordUser().getTimeCreated().toEpochSecond()), true)
|
.appendLine("Account Age: <t:%s:R>".formatted(user.getDiscordUser().getTimeCreated().toEpochSecond()), true)
|
||||||
.build())
|
.build())
|
||||||
|
.setThumbnail(user.getDiscordUser().getEffectiveAvatarUrl())
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +67,7 @@ public class MemberListener implements EventListener {
|
|||||||
if (user.getDiscordUser().isBot()) return;
|
if (user.getDiscordUser().isBot()) return;
|
||||||
|
|
||||||
logFeature.sendLog(guild, LogType.MEMBER_NICKNAME_UPDATE, EmbedUtils.genericEmbed()
|
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("Member: %s".formatted(user.getDiscordUser().getAsMention()), true)
|
||||||
.appendLine("Old Nickname: `%s`".formatted(oldName == null ? user.getName() : oldName), true)
|
.appendLine("Old Nickname: `%s`".formatted(oldName == null ? user.getName() : oldName), true)
|
||||||
.appendLine("New Nickname: `%s`".formatted(newName == null ? "Removed Nickname" : newName), true)
|
.appendLine("New Nickname: `%s`".formatted(newName == null ? "Removed Nickname" : newName), true)
|
||||||
|
Loading…
Reference in New Issue
Block a user