0
0
Fork 0

Add docs for the GetPastQuestions event

This commit is contained in:
Oliver-Akins 2020-12-16 16:17:32 -07:00
parent 170e222573
commit 988aa33589

View file

@ -123,10 +123,25 @@ Sends a card to the server, the server either then either forwards the card to t
| from | String | The source of the card. This will be one of `"deck"`, or `"guesser"` | from | String | The source of the card. This will be one of `"deck"`, or `"guesser"`
<br><br> <br><br>
---
# `GetPastQuestions`:
## Description:
This event is sent from the client to the server when it has the PastQuestions component visible.
## Request Payload: ## Request Payload:
| Property | Type | Description | Property | Type | Description
| -------- | ---- | ----------- | -------- | ---- | -----------
| team | Integer | The team we are requesting the questions for. This can be one of `1`, or `2`, any other value will cause an error to be returned.
## Response Payload: (`PastQuestions`)
| Property | Type | Description
| -------- | ---- | -----------
| questions | String[] | All the previously chosen questions for the team.
<br><br>
---
## Response Payload: (``) ## Response Payload: (``)