From 982c038b07ea9d32289f4df147483d40335a7c94 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 2 Jul 2024 20:07:34 +0100 Subject: [PATCH] don't show clickable channel on channel delete log --- .../bat/features/logging/listeners/ChannelListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 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 b3c0565..9c1bb05 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 @@ -42,8 +42,7 @@ public class ChannelListener implements EventListener { public void onChannelDelete(@NonNull BatGuild guild, @NonNull ChannelDeleteEvent event) { ChannelUnion channel = event.getChannel(); EmbedDescriptionBuilder description = new EmbedDescriptionBuilder("%s Channel Deleted".formatted(EnumUtils.getEnumName(channel.getType()))) - .appendLine("Channel: %s".formatted(channel.getAsMention()), true) - .appendLine("Name: %s".formatted(channel.getName()), true); + .appendLine("Name: #%s".formatted(channel.getName()), true); if (channel.getType().isMessage()) { TextChannel textChannel = channel.asTextChannel(); description.appendLine("Topic: %s".formatted(textChannel.getTopic()), true);