# Players and answers

> Reference for the player object and the answer metadata every StreamArena game receives, whatever chat or phone the answer came from.

Every answer reaches your game in one shape, from any chat or phone: a player, the text, and metadata about when it was sent. You write the game once.

## Player

| Field | What it is |
|---|---|
| `platform` | `youtube`, `twitch`, `kick`, `rumble`, `phone` or `house` |
| `id` | An id for this player |
| `name` | Display name, already safety-filtered |
| `avatar` | Image URL, or `null` |
| `points` | Current score |
| `isHouse`, `isPhone` | True for the house player and phone players |
| `score(points)` | Adds or removes points |
| `correct(points)` | Correct this round: scores once and shows "got it" on stream. False if already correct |

## Answer metadata

| Field | What it is |
|---|---|
| `at` | Seconds since this viewer saw the round start, corrected for stream delay |
| `platform` | Where the answer came from |
| `secret` | True for phone answers, which never show before the reveal |

## Answer text

The text is a string with matching built in: `text.matches(answers)` and `text.isClose(answers)`. See [Matching answers](https://streamarena.so/docs/guides/matching/).
