From 90aaf5422f7ef8520f94f3d3461dbcd27ecd7dc5 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 3 Jul 2024 19:53:47 +0100 Subject: [PATCH] fix some messages --- .../bat/features/logging/listeners/ChannelListener.java | 4 ++-- .../bat/features/logging/listeners/MessageListener.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 bce1d21..0e014f5 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 @@ -32,7 +32,7 @@ public class ChannelListener implements EventListener { @Override public void onChannelCreate(@NonNull BatGuild guild, @NonNull ChannelCreateEvent event) { - log.info("Channel {} was created in guild {}", event.getChannel().getName(), guild.getName()); + log.info("Channel \"{}\" was created in guild \"{}\"", event.getChannel().getName(), guild.getName()); logFeature.sendLog(guild, LogType.CHANNEL_CREATE, EmbedUtils.successEmbed() .setDescription(new EmbedDescriptionBuilder("%s Channel Created".formatted(EnumUtils.getEnumName(event.getChannel().getType()))) .appendLine("Channel: %s".formatted(event.getChannel().getAsMention()), true) @@ -43,7 +43,7 @@ public class ChannelListener implements EventListener { @Override public void onChannelDelete(@NonNull BatGuild guild, @NonNull ChannelDeleteEvent event) { - log.info("Channel {} was deleted in guild {}", event.getChannel().getName(), guild.getName()); + log.info("Channel \"{}\" was deleted in guild \"{}\"", event.getChannel().getName(), guild.getName()); ChannelUnion channel = event.getChannel(); EmbedDescriptionBuilder description = new EmbedDescriptionBuilder("%s Channel Deleted".formatted(EnumUtils.getEnumName(channel.getType()))) .appendLine("Name: #%s".formatted(channel.getName()), true); diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java index f305282..7f8ec22 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java @@ -32,7 +32,7 @@ public class MessageListener implements EventListener { @Override public void onGuildMessageDelete(@NonNull BatGuild guild, BatUser user, DiscordMessage message, @NonNull MessageDeleteEvent event) { if (user.getDiscordUser().isBot() || message.getAuthor().isBot()) return; - log.info("User {} deleted a message in guild {}", user.getDiscordUser().getGlobalName(), guild.getName()); + log.info("User \"{}\" deleted a message in guild \"{}\"", user.getDiscordUser().getGlobalName(), guild.getName()); logFeature.sendLog(guild, LogType.MESSAGE_DELETE, EmbedUtils.errorEmbed() .setDescription(new EmbedDescriptionBuilder("Message Deleted") @@ -47,7 +47,7 @@ public class MessageListener implements EventListener { public void onGuildMessageEdit(@NonNull BatGuild guild, @NonNull BatUser user, DiscordMessage oldMessage, @NonNull DiscordMessage newMessage, @NonNull MessageUpdateEvent event) { if (user.getDiscordUser().isBot() || newMessage.getAuthor().isBot() || oldMessage == null) return; - log.info("User {} edited a message in guild {}", user.getDiscordUser().getGlobalName(), guild.getName()); + log.info("User \"{}\" edited a message in guild \"{}\"", user.getDiscordUser().getGlobalName(), guild.getName()); logFeature.sendLog(guild, LogType.MESSAGE_EDIT, EmbedUtils.genericEmbed() .setDescription(new EmbedDescriptionBuilder("Message Edited")