Class Guild.Ban

    • Constructor Summary

      Constructors 
      Constructor Description
      Ban​(User user, java.lang.String reason)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getReason()
      The reason why this user was banned
      User getUser()
      The User that was banned
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Ban

        public Ban​(User user,
                   java.lang.String reason)
    • Method Detail

      • getUser

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object