From 79d20672c5825ccfb1f879dc4948b71f2489e44a Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 05:28:06 +0100 Subject: [PATCH] update log --- .../bat/features/logging/listeners/ChannelListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java index 706c81a..fdca649 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java @@ -74,7 +74,7 @@ public class ChannelListener implements EventListener { public void onChannelUpdateName(@NonNull BatGuild guild, @NonNull ChannelUpdateNameEvent event) { ChannelUnion channel = event.getChannel(); String type = formatChannelType(channel); - log.info("{} \"{}\" name was updated in guild \"{}\"", type, event.getChannel().getName(), guild.getName()); + log.info("{} \"{}\" name was updated to {} in guild \"{}\"", type, event.getNewValue(), event.getOldValue(), guild.getName()); logFeature.sendLog(guild, LogType.CHANNEL_UPDATE_NAME, EmbedUtils.successEmbed() .setDescription(new EmbedDescriptionBuilder("%s Name Updated".formatted(type)) .appendLine("%s: %s".formatted(type, event.getChannel().getAsMention()), true)