Class RichPresence.Party

java.lang.Object
net.dv8tion.jda.api.entities.RichPresence.Party
Enclosing interface:
RichPresence

public static class RichPresence.Party extends Object
Holds information on a player's party
  • Constructor Details

    • Party

      public Party(String id, long size, long max)
  • Method Details

    • getId

      @Nullable public String getId()
      ID for this party, relevant to the game.
      Returns:
      The ID for this party, or null if unset
    • getSize

      public long getSize()
      The current size of this party, or 0 if unset
      Returns:
      The current size of this party, or 0 if unset
    • getMax

      public long getMax()
      The maximum size of this party, or 0 if unset
      Returns:
      The maximum size of this party, or 0 if unset
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object