index/interfaces/StreamChatMessage.md
Stream chat message
Note: Messages have TWO IDs:
id: MySQL auto-increment ID (may be undefined until flushed to DB)messageId: UUID-based string ID (always present, format: chat-{timestamp}-{uuid8})
message id
Since
5.1.0
Since
6.0.0 - Added reactions field
Properties
| Property | Type | Description |
|---|---|---|
content | string | Message content (sanitized, max 500 chars) |
createdAt | string | Message creation timestamp (ISO 8601) |
holderTier? | HolderTierInfo | Holder tier badge for the message author (token-specific) Shows the author's token holding tier based on % of max supply held. Only present if the user holds tokens. Omitted for non-holders. Since 6.5.0 |
id? | number | MySQL database ID (auto-increment) May be undefined if the message hasn't been flushed to the database yet. Use messageId for reliable message identification. |
messageId | string | Unique string identifier (always present) Format: chat-{timestamp}-{uuid8} Example: chat-1702656000000-a1b2c3d4 This is the primary identifier for message deduplication and tracking. |
reactions? | ReactionData | Reaction data for this message (grouped by type with counts and user previews) Since 6.0.0 |
tokenName | string | Token name this message belongs to |
user? | UserProfileInfo | Sender's profile information (may not be present in all responses) |
userAddress | AddressFormat | Sender's wallet address in backend format |
created at holder tier info message id reaction data token name user profile address format