change avatar url in the log
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m26s

This commit is contained in:
Lee 2024-07-05 22:29:25 +01:00
parent a605ab2dba
commit 36d29caa7a

@ -148,6 +148,7 @@ public class MemberListener implements EventListener {
if (user.getDiscordUser().isBot()) { if (user.getDiscordUser().isBot()) {
return; return;
} }
newAvatarUrl = user.getDiscordUser().getAvatar() == null ? null : user.getDiscordUser().getAvatar().getUrl(4096);
log.info("User \"{}\" changed their avatar to \"{}\"", user.getName(), newAvatarUrl); log.info("User \"{}\" changed their avatar to \"{}\"", user.getName(), newAvatarUrl);
for (Guild guild : DiscordService.JDA.getGuilds()) { for (Guild guild : DiscordService.JDA.getGuilds()) {