Class RichPresence.Image

java.lang.Object
net.dv8tion.jda.api.entities.RichPresence.Image
Enclosing interface:
RichPresence

public static class RichPresence.Image extends Object
Used to hold information on images within a Rich Presence profile
  • Constructor Details

    • Image

      public Image(long applicationId, String key, String text)
  • Method Details

    • getKey

      @Nonnull public String getKey()
      The key for this image, used for getUrl()
      Returns:
      The key for this image
    • getText

      @Nullable public 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 String getUrl()
      URL for this image, combination of RichPresence.getApplicationId() and getKey()
      Returns:
      URL for this image
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object