make log messages more consistent

This commit is contained in:
Lee
2024-07-04 05:25:19 +01:00
parent b6ba778ff2
commit 772787a98e
6 changed files with 42 additions and 12 deletions

View File

@ -10,6 +10,7 @@ import lombok.extern.log4j.Log4j2;
import net.dv8tion.jda.api.entities.Invite;
import net.dv8tion.jda.api.events.channel.ChannelCreateEvent;
import net.dv8tion.jda.api.events.channel.ChannelDeleteEvent;
import net.dv8tion.jda.api.events.channel.update.ChannelUpdateNameEvent;
import net.dv8tion.jda.api.events.emoji.EmojiAddedEvent;
import net.dv8tion.jda.api.events.emoji.EmojiRemovedEvent;
import net.dv8tion.jda.api.events.emoji.update.EmojiUpdateNameEvent;
@ -381,4 +382,13 @@ public class EventService extends ListenerAdapter {
listener.onEmojiRename(guild, event.getEmoji(), event.getOldName(), event.getNewName(), event);
}
}
@Override
public void onChannelUpdateName(@NotNull ChannelUpdateNameEvent event) {
BatGuild guild = guildService.getGuild(event.getGuild().getId());
for (EventListener listener : LISTENERS) {
listener.onChannelUpdateName(guild, event);
}
}
}