Class GuildBanEvent


  • public class GuildBanEvent
    extends GenericGuildEvent
    Indicates that a User was banned from a Guild.

    Can be used to retrieve the user who was banned (if available) and triggering guild.
    Note: This does not directly indicate that a Member is removed from the Guild!

    See Also:
    GuildMemberLeaveEvent
    • Constructor Detail

      • GuildBanEvent

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

      • getUser

        public User getUser()
        The banned User
        Possibly fake user.
        Returns:
        The banned user