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_MODERATION intent to be enabled.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuildMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GuildUnbanEvent
-
-
Method Details
-
getUser
TheUserwho was unbanned- Returns:
- The unbanned user
-