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_BANS intent to be enabled.

    • Constructor Detail

      • GuildUnbanEvent

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

      • getUser

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