Skip to content

[FRIENDS] Discord integration #161

Description

@tobibodamer

How to build up discord friendships on server?

  • Client fetches it's discord relationships with the social SDK
  • Client tells the server its discord friend list upon connect
  • The server caches that list and checks for mutual matches in other users cached lists
  • Now the server knows they are friends, sends them relevant status about each other and allows interactions like joining
  • When a client's friend list changes, it notifies the server with the updated list / the change and updates mutual friendships
  • Mutual friendships are only cached in-memory and not persisted (b.c. when a client goes offline we cannot guarantee the friendship persists)

Also

  • Store friends (with discord id) offline to display when not connected to SignalR and display last known player name

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions