Class BanEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.guild.GuildEvent
-
- discord4j.core.event.domain.guild.BanEvent
-
public class BanEvent extends GuildEvent
Dispatched when a user is banned from a guild.This event is dispatched by Discord.
- See Also:
- Guild Ban Add
-
-
Constructor Summary
Constructors Constructor Description BanEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, User user, long guildId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<Guild>
getGuild()
Snowflake
getGuildId()
User
getUser()
String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
BanEvent
public BanEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, User user, long guildId)
-
-