impl member ban and unban logging
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 43s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 43s
This commit is contained in:
@ -10,6 +10,8 @@ import lombok.NonNull;
|
||||
import net.dv8tion.jda.api.entities.Role;
|
||||
import net.dv8tion.jda.api.events.channel.ChannelCreateEvent;
|
||||
import net.dv8tion.jda.api.events.channel.ChannelDeleteEvent;
|
||||
import net.dv8tion.jda.api.events.guild.GuildBanEvent;
|
||||
import net.dv8tion.jda.api.events.guild.GuildUnbanEvent;
|
||||
import net.dv8tion.jda.api.events.guild.member.GuildMemberJoinEvent;
|
||||
import net.dv8tion.jda.api.events.guild.member.GuildMemberRemoveEvent;
|
||||
import net.dv8tion.jda.api.events.guild.member.GuildMemberRoleAddEvent;
|
||||
@ -170,6 +172,24 @@ public interface EventListener {
|
||||
default void onChannelDelete(@NonNull BatGuild guild, @NonNull ChannelDeleteEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a user is banned from a guild
|
||||
*
|
||||
* @param guild the guild that the user was banned from
|
||||
* @param user the user that was banned
|
||||
*/
|
||||
default void onGuildMemberBan(@NonNull BatGuild guild, @NonNull BatUser user, @NonNull GuildBanEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a user is unbanned from a guild
|
||||
*
|
||||
* @param guild the guild that the user was unbanned from
|
||||
* @param user the user that was unbanned
|
||||
*/
|
||||
default void onGuildMemberUnban(@NonNull BatGuild guild, @NonNull BatUser user, @NonNull GuildUnbanEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when Spring is shutting down
|
||||
*/
|
||||
|
Reference in New Issue
Block a user