Class Presence

java.lang.Object
de.jcm.discordgamesdk.user.Presence

public class Presence extends Object
Representation of a user's current presence (usually provided with a Relationship).
See Also:
  • Constructor Details

  • Method Details

    • getStatus

      public OnlineStatus getStatus()
      Gets the online/Discord status of the user.
      Returns:
      An OnlineStatus
    • getActivity

      public Activity getActivity()
      Gets the current Activity of the user.
      Returns:
      An Activity
    • toString

      public String toString()

      Generates a string representation of the presence containing all its attributes.

      This is just one of IntelliJ IDEA's default toString()-Methods, so don't expect anything special.

      Overrides:
      toString in class Object
      Returns:
      A string representation of the presence