Package net.dv8tion.jda.api.entities
Class RichPresence.Party
- java.lang.Object
-
- net.dv8tion.jda.api.entities.RichPresence.Party
-
- Enclosing interface:
- RichPresence
public static class RichPresence.Party extends java.lang.Object
Holds information on a player's party
-
-
Constructor Summary
Constructors Constructor Description Party(java.lang.String id, long size, long max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getId()
ID for this party, relevant to the game.long
getMax()
The maximum size of this party, or0
if unsetlong
getSize()
The current size of this party, or0
if unsetint
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getId
@Nullable public java.lang.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, or0
if unset- Returns:
- The current size of this party, or
0
if unset
-
getMax
public long getMax()
The maximum size of this party, or0
if unset- Returns:
- The maximum size of this party, or
0
if unset
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-