add channel permission update logging

This commit is contained in:
Lee
2024-07-04 09:36:40 +01:00
parent a0e0b82f40
commit dbe6fb4762
4 changed files with 53 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import net.dv8tion.jda.api.events.guild.member.GuildMemberRoleRemoveEvent;
import net.dv8tion.jda.api.events.guild.member.update.GuildMemberUpdateBoostTimeEvent;
import net.dv8tion.jda.api.events.guild.member.update.GuildMemberUpdateNicknameEvent;
import net.dv8tion.jda.api.events.guild.member.update.GuildMemberUpdateTimeOutEvent;
import net.dv8tion.jda.api.events.guild.override.GenericPermissionOverrideEvent;
import net.dv8tion.jda.api.events.guild.voice.GuildVoiceUpdateEvent;
import net.dv8tion.jda.api.events.interaction.ModalInteractionEvent;
import net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent;
@ -391,4 +392,13 @@ public class EventService extends ListenerAdapter {
listener.onChannelUpdateName(guild, event);
}
}
@Override
public void onGenericPermissionOverride(@NotNull GenericPermissionOverrideEvent event) {
BatGuild guild = guildService.getGuild(event.getGuild().getId());
for (EventListener listener : LISTENERS) {
listener.onPermissionOverride(guild, event);
}
}
}