public class GuildBanEvent extends GenericGuildEvent
User
was banned from a Guild
.
Can be used to retrieve the user who was banned (if available) and triggering guild.
Note: This does not directly indicate that a Member is removed from the Guild!
GuildMemberLeaveEvent
Constructor | Description |
---|---|
GuildBanEvent(JDA api,
long responseNumber,
Guild guild,
User user) |
Modifier and Type | Method | Description |
---|---|---|
User |
getUser() |
The banned
User
Possibly fake user. |
getJDA, getResponseNumber
getGuild