forked from Fascinated/Bat
update log messages and add bitrate and topic change logs
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user