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 {
action: "modify" | "remove";
game_code: string;
name: string;
team: team;
role: role;
from: {
team: team;
role: role;
};
to: {
team: team;
role: role;
};
}
interface UpdatePlayerResponse {
name: string;
team: team;
role: role;
action?: "modify" | "new" | "remove";
name?: string; // action: all
team?: team; // action: "modify"
role?: role; // action: "modify"
}