don't show clickable channel on channel delete log
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 40s

This commit is contained in:
Lee 2024-07-02 20:07:34 +01:00
parent 52223b5233
commit 982c038b07

View File

@ -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);