0
0
Fork 0

Update the UpdatePlayer event data to more accurately the data payloads.

This commit is contained in:
Oliver-Akins 2020-12-26 14:43:55 -07:00
parent 624ebf123e
commit 9e384f7826

View file

@ -80,12 +80,21 @@ interface UpdateAnswerResponse extends response {
interface UpdatePlayer { interface UpdatePlayer {
action: "modify" | "remove";
game_code: string;
name: string; name: string;
team: team; from: {
role: role; team: team;
role: role;
};
to: {
team: team;
role: role;
};
} }
interface UpdatePlayerResponse { interface UpdatePlayerResponse {
name: string; action?: "modify" | "new" | "remove";
team: team; name?: string; // action: all
role: role; team?: team; // action: "modify"
role?: role; // action: "modify"
} }