Chapter 5 of 13
Players and privacy
Your addon never sees a Discord id, server or channel: each player is a Match Player Id, and names come only with players.profile.
Your addon never receives a player’s Discord user id, or the server (guild) or channel they are in. Instead:
- Every player in a match has a Match Player Id: a random
mp_...id the room assigns on first join. It is stable across reconnects within the match and never reused across matches, so you cannot link two matches by it. Game state, turn owners, winners, whispers, engine requests and every bridge payload use it. - Names and avatars are included only with
players.profile. Avatars that would reveal the Discord id are never included.
Design accordingly: keep per-match state under Match Player Ids, and do not ask players for identity you do not need.