don't show clickable channel on channel delete log
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 40s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 40s
This commit is contained in:
parent
52223b5233
commit
982c038b07
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user