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
How to build up discord friendships on server?
Also