update log messages and add bitrate and topic change logs

This commit is contained in:
Lee
2024-07-04 10:22:19 +01:00
parent 06ded19492
commit 626a9bd77d
6 changed files with 102 additions and 31 deletions

View File

@ -10,7 +10,10 @@ 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.ChannelUpdateBitrateEvent;
import net.dv8tion.jda.api.events.channel.update.ChannelUpdateNSFWEvent;
import net.dv8tion.jda.api.events.channel.update.ChannelUpdateNameEvent;
import net.dv8tion.jda.api.events.channel.update.ChannelUpdateTopicEvent;
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;
@ -441,4 +444,22 @@ public class EventService extends ListenerAdapter {
listener.onRoleUpdateName(guild, event);
}
}
@Override
public void onChannelUpdateTopic(@NotNull ChannelUpdateTopicEvent event) {
BatGuild guild = guildService.getGuild(event.getGuild().getId());
for (EventListener listener : LISTENERS) {
listener.onChannelUpdateTopic(guild, event);
}
}
@Override
public void onChannelUpdateBitrate(@NotNull ChannelUpdateBitrateEvent event) {
BatGuild guild = guildService.getGuild(event.getGuild().getId());
for (EventListener listener : LISTENERS) {
listener.onChannelUpdateBitrate(guild, event);
}
}
}