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
Indicates that a
User
was unbanned from a Guild
.
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_BANS
intent to be enabled.
-
Constructor Summary
-
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Constructor Details
-
GuildUnbanEvent
-
-
Method Details
-
getUser
TheUser
who was unbanned- Returns:
- The unbanned user
-