Package net.dv8tion.jda.api.events.guild
Class GuildUnbanEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.guild.GuildUnbanEvent
-
- All Implemented Interfaces:
GenericEvent
public class GuildUnbanEvent extends GenericGuildEvent
Indicates that aUserwas unbanned from aGuild.Can be used to retrieve the user who was unbanned (if available) and the guild which they were unbanned from.
Requirements
This event requires the
GUILD_BANSintent to be enabled.
-
-
Constructor Summary
Constructors Constructor Description GuildUnbanEvent(JDA api, long responseNumber, Guild guild, User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UsergetUser()TheUserwho was unbanned-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-