Skip to content

GodotcordRelationship

Drachenfrucht1 edited this page Aug 18, 2021 · 1 revision

GodotcordRelationship

Data class for a discord relationship

Description

Data class for a discord relationship

RelationshipType type
int user_id
GodotcordPresence presence
RelationshipStatus get_type()
void set_type(property : RelationshipStatus)
int get_user_id()
void set_user_id(property : int)
GodotcordPresence get_presence()
void set_presence(property : GodotcordPresence)

Enumerations

enum RelationshipType

  • NONE=0 --- The user has no intrinsic relationship
  • FRIEND=1 --- The user is a friend
  • BLOCKED=2 --- The user is blocked
  • PENDING_INCOMING=3 --- The current user has a pending incoming friend request from the user
  • PENDING_OUTGOING=4 --- The current user has a pending outgoing friend request to the user
  • IMPLICIT=5 --- The user is no friend but they interact often

Method Descriptions

  • RelationshipStatus get_type()

  • void set_type(property : RelationshipStatus)

  • int get_user_id()

  • void set_user_id(property : int)

  • GodotcordPresence get_presence()

  • void set_presence(property : GodotcordPresence)