Package net.dv8tion.jda.api.entities
Class RichPresence.Image
- java.lang.Object
-
- net.dv8tion.jda.api.entities.RichPresence.Image
-
- Enclosing interface:
- RichPresence
public static class RichPresence.Image extends java.lang.Object
Used to hold information on images within a Rich Presence profile
-
-
Constructor Summary
Constructors Constructor Description Image(long applicationId, java.lang.String key, java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getKey()
The key for this image, used forgetUrl()
java.lang.String
getText()
Text which is displayed when hovering the image in the official clientjava.lang.String
getUrl()
URL for this image, combination ofRichPresence.getApplicationId()
andgetKey()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getKey
@Nonnull public java.lang.String getKey()
The key for this image, used forgetUrl()
- Returns:
- The key for this image
-
getText
@Nullable public java.lang.String getText()
Text which is displayed when hovering the image in the official client- Returns:
- Hover text for this image, or
null
-
getUrl
@Nonnull public java.lang.String getUrl()
URL for this image, combination ofRichPresence.getApplicationId()
andgetKey()
- Returns:
- URL for this image
-
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
-
-