Class Relationship

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

public class Relationship extends Object
The relationship between a user and the current user.
See Also:
  • Constructor Details

  • Method Details

    • getType

      public RelationshipType getType()
      Gets the type of the relationship between the user and the current user.
      Returns:
      The type of the relationship
    • getUser

      public DiscordUser getUser()
      Gets the user the current user has the relationship with.
      Returns:
      Another user
    • getPresence

      public Presence getPresence()
      Gets the Presence of the user which the current user has an relationship with.
      Returns:
      The user's presence.
    • toString

      public String toString()

      Generates a string representation of the relationship 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 relationship