Package net.runelite.client.discord
Class DiscordPresence
- java.lang.Object
-
- net.runelite.client.discord.DiscordPresence
-
public final class DiscordPresence extends java.lang.ObjectRepresents Discord Rich Presence RPC data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiscordPresence.DiscordPresenceBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiscordPresence.DiscordPresenceBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetDetails()What the player is currently doing.java.time.InstantgetEndTimestamp()Unix timestamp (seconds) for the end of the game.java.lang.StringgetJoinSecret()Unique hashed string for Spectate button.java.lang.StringgetLargeImageKey()Name of the uploaded image for the large profile artwork.java.lang.StringgetLargeImageText()Tooltip for the largeImageKey.java.lang.StringgetMatchSecret()Unique hashed string for Spectate and Join.java.lang.StringgetPartyId()ID of the player's party, lobby, or group.intgetPartyMax()Maximum size of the player's party, lobby, or group.intgetPartySize()Current size of the player's party, lobby, or group.java.lang.StringgetSmallImageKey()Name of the uploaded image for the small profile artwork.java.lang.StringgetSmallImageText()Tooltip for the smallImageKey.java.lang.StringgetSpectateSecret()Unique hashed string for chat invitations and Ask to Join.java.time.InstantgetStartTimestamp()Unix timestamp (seconds) for the start of the game.java.lang.StringgetState()The user's current party status.inthashCode()booleanisInstance()Marks the matchSecret as a game session with a specific beginning and end.DiscordPresence.DiscordPresenceBuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static DiscordPresence.DiscordPresenceBuilder builder()
-
toBuilder
public DiscordPresence.DiscordPresenceBuilder toBuilder()
-
getState
public java.lang.String getState()
The user's current party status. Example: "Looking to Play", "Playing Solo", "In a Group" Maximum: 128 characters
-
getDetails
public java.lang.String getDetails()
What the player is currently doing. Example: "Competitive - Captain's Mode", "In Queue", "Unranked PvP" Maximum: 128 characters
-
getStartTimestamp
public java.time.Instant getStartTimestamp()
Unix timestamp (seconds) for the start of the game.
-
getEndTimestamp
public java.time.Instant getEndTimestamp()
Unix timestamp (seconds) for the end of the game.
-
getLargeImageKey
public java.lang.String getLargeImageKey()
Name of the uploaded image for the large profile artwork. Example: "default" Maximum: 32 characters
-
getLargeImageText
public java.lang.String getLargeImageText()
Tooltip for the largeImageKey. Example: "Blade's Edge Arena", "Numbani", "Danger Zone" Maximum: 128 characters
-
getSmallImageKey
public java.lang.String getSmallImageKey()
Name of the uploaded image for the small profile artwork. Example: "rogue" Maximum: 32 characters
-
getSmallImageText
public java.lang.String getSmallImageText()
Tooltip for the smallImageKey. Example: "Rogue - Level 100" Maximum: 128 characters
-
getPartyId
public java.lang.String getPartyId()
ID of the player's party, lobby, or group. Example: "ae488379-351d-4a4f-ad32-2b9b01c91657" Maximum: 128 characters
-
getPartySize
public int getPartySize()
Current size of the player's party, lobby, or group. Example: 1
-
getPartyMax
public int getPartyMax()
Maximum size of the player's party, lobby, or group. Example: 5
-
getMatchSecret
public java.lang.String getMatchSecret()
Unique hashed string for Spectate and Join. Required to enable match interactive buttons in the user's presence. Example: "MmhuZToxMjMxMjM6cWl3amR3MWlqZA==" Maximum: 128 characters
-
getJoinSecret
public java.lang.String getJoinSecret()
Unique hashed string for Spectate button. This will enable the "Spectate" button on the user's presence if whitelisted. Example: "MTIzNDV8MTIzNDV8MTMyNDU0" Maximum: 128 characters
-
getSpectateSecret
public java.lang.String getSpectateSecret()
Unique hashed string for chat invitations and Ask to Join. This will enable the "Ask to Join" button on the user's presence if whitelisted. Example: "MTI4NzM0OjFpMmhuZToxMjMxMjM=" Maximum: 128 characters
-
isInstance
public boolean isInstance()
Marks the matchSecret as a game session with a specific beginning and end.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-