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.ObjectUsed 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 booleanequals(java.lang.Object obj)java.lang.StringgetKey()The key for this image, used forgetUrl()java.lang.StringgetText()Text which is displayed when hovering the image in the official clientjava.lang.StringgetUrl()URL for this image, combination ofRichPresence.getApplicationId()andgetKey()inthashCode()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-