Package net.dv8tion.jda.core.entities
Class RichPresence.Party
- java.lang.Object
-
- net.dv8tion.jda.core.entities.RichPresence.Party
-
- Enclosing class:
- 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.int
getMax()
The maximum size of this party, or0
if unsetlong
getMaxAsLong()
The maximum size of this party, or0
if unsetint
getSize()
The current size of this party, or0
if unsetlong
getSizeAsLong()
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
@Incubating public int getSize()
The current size of this party, or0
if unset- Returns:
- The current size of this party, or
0
if unset - Incubating:
- The return type for this method will change to
long
for compatibility
-
getSizeAsLong
public long getSizeAsLong()
The current size of this party, or0
if unset- Returns:
- The current size of this party, or
0
if unset
-
getMax
@Incubating public int getMax()
The maximum size of this party, or0
if unset- Returns:
- The maximum size of this party, or
0
if unset - Incubating:
- The return type for this method will change to
long
for compatibility
-
getMaxAsLong
public long getMaxAsLong()
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
-
-