forked from Fascinated/Bat
update log
This commit is contained in:
parent
772787a98e
commit
79d20672c5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user