Class Guild.Ban

java.lang.Object
net.dv8tion.jda.api.entities.Guild.Ban
Enclosing interface:
Guild

public static class Guild.Ban extends Object
Represents a Ban object.
See Also:
  • Constructor Details

  • Method Details

    • getUser

      @Nonnull public User getUser()
      The User that was banned
      Returns:
      The banned User
    • getReason

      @Nullable public String getReason()
      The reason why this user was banned
      Returns:
      The reason for this ban, or null
    • toString

      public String toString()
      Overrides:
      toString in class Object