Class 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
    • Method Detail

      • getUser

        public User getUser()
        Gets the User that has been unbanned in this event.
        Returns:
        The User that has been unbanned.
      • getGuildId

        public Snowflake getGuildId()
        Gets the Snowflake ID of the Guild the User was unbanned from.
        Returns:
        The ID of the Guild involved.
      • getGuild

        public Mono<Guild> getGuild()
        Requests to retrieve the Guild the Member was unbanned from.
        Returns:
        A Mono where, upon successful completion, emits the Guild the User was unbanned from. If an error is received, it is emitted through the Mono.