Class UnbanEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.guild.GuildEvent
-
- discord4j.core.event.domain.guild.UnbanEvent
-
public class UnbanEvent extends GuildEvent
Dispatched when a user is unbanned from a guild.This event is dispatched by Discord.
- See Also:
- Guild Ban Remove
-
-
Constructor Summary
Constructors Constructor Description UnbanEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, User user, long guildId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<Guild>
getGuild()
Requests to retrieve the Guild the Member was unbanned from.Snowflake
getGuildId()
User
getUser()
Gets theUser
that has been unbanned in this event.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
UnbanEvent
public UnbanEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, User user, long guildId)
-
-
Method Detail
-
getUser
public User getUser()
Gets theUser
that has been unbanned in this event.- Returns:
- The
User
that has been unbanned.
-
getGuildId
public Snowflake getGuildId()
- Returns:
- The ID of the Guild involved.
-
-