作る

ChatMessage

Player-authored chat message broadcast inside a lobby.

ChatMessage

Player-authored chat message broadcast inside a lobby.

Properties

id

id: string

Stable unique identifier for the message.

userId

userId: string

Sender id; matches LeaderboardEntry.userId.

name

name: string

Display name chosen by the player.

content

content: string

Plain-text chat content.

timestamp

timestamp: string

ISO timestamp generated by the platform.