Class GuildUnbanEvent

All Implemented Interfaces:
GenericEvent

public class GuildUnbanEvent extends GenericGuildEvent
Indicates that a User was unbanned from a Guild.

Can be used to retrieve the user who was unbanned (if available) and the guild which they were unbanned from.

Requirements

This event requires the GUILD_MODERATION intent to be enabled.

  • Constructor Details

    • GuildUnbanEvent

      public GuildUnbanEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nonnull User user)
  • Method Details

    • getUser

      @Nonnull public User getUser()
      The User who was unbanned
      Returns:
      The unbanned user