diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java index 68fb446..62fb9eb 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java @@ -30,13 +30,13 @@ import org.springframework.context.ApplicationContext; import org.springframework.stereotype.Component; import java.time.OffsetDateTime; -import java.time.temporal.ChronoUnit; import java.util.List; /** * @author Fascinated (fascinated7) */ -@Component @Log4j2 +@Component +@Log4j2 public class MemberListener implements EventListener { private final LogFeature logFeature; private final GuildService guildService; @@ -49,8 +49,8 @@ public class MemberListener implements EventListener { @Override public void onGuildMemberJoin(@NonNull BatGuild guild, @NonNull BatUser user, @NonNull GuildMemberJoinEvent event) { - if (user.getDiscordUser().isBot()) - log.info("User \"{}\" joined the guild \"{}\"", user.getName(), guild.getDiscordGuild().getName()); + if (user.getDiscordUser().isBot()) + log.info("User \"{}\" joined the guild \"{}\"", user.getName(), guild.getDiscordGuild().getName()); logFeature.sendLog(guild, LogType.MEMBER_JOIN, EmbedUtils.successEmbed() .setDescription(new EmbedDescriptionBuilder("Member Joined") @@ -58,7 +58,7 @@ public class MemberListener implements EventListener { .appendLine("Username: `%s`".formatted(user.getDiscordUser().getName()), true) .appendLine("Joined Discord: ".formatted(user.getDiscordUser().getTimeCreated().toEpochSecond()), true) .build()) - .setThumbnail(user.getDiscordUser().getEffectiveAvatarUrl()) + .setThumbnail(user.getDiscordUser().getEffectiveAvatarUrl()) .build()); } @@ -150,9 +150,10 @@ public class MemberListener implements EventListener { logFeature.sendLog(batGuild, LogType.MEMBER_USERNAME_UPDATE, EmbedUtils.genericEmbed() .setDescription(new EmbedDescriptionBuilder("Member Avatar Updated") .appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true) - .appendLine("Old Avatar: %s".formatted(oldAvatarUrl == null ? "None" : "[avatar](%s)".formatted(oldAvatarUrl)), true) +// .appendLine("Old Avatar: %s".formatted(oldAvatarUrl == null ? "None" : "[avatar](%s)".formatted(oldAvatarUrl)), true) .appendLine("New Avatar: [avatar](%s)".formatted(newAvatarUrl), true) .build()) + .setThumbnail(newAvatarUrl) .build()); } } @@ -245,7 +246,7 @@ public class MemberListener implements EventListener { @Override public void onGuildMemberBoostAdd(@NonNull BatGuild guild, @NonNull BatUser user, OffsetDateTime oldBoostTime, - @NonNull OffsetDateTime newBoostTime, @NonNull GuildMemberUpdateBoostTimeEvent event) { + @NonNull OffsetDateTime newBoostTime, @NonNull GuildMemberUpdateBoostTimeEvent event) { if (user.getDiscordUser().isBot()) { return; }