Package net.dv8tion.jda.api.events.guild
Class GuildBanEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.GuildBanEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a
User
was banned from a Guild
.
Can be used to retrieve the user who was banned (if available) and the triggering guild.
Note: This does not directly indicate that a Member is removed from the Guild!
Requirements
This event requires the GUILD_MODERATION
intent to be enabled.
- See Also:
-
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, getRawData, getResponseNumber, toString
-
Constructor Details
-
GuildBanEvent
-
-
Method Details
-
getUser
The bannedUser
- Returns:
- The banned user
-