1## ChatMessage
2```json
3{
4 "channel_id": 5,
5 "content": "i am a lazerface",
6 "is_action": false,
7 "message_id": 9150005004,
8 "sender_id": 2,
9 "timestamp": "2018-07-06T06:33:34+00:00",
10 "type": "plain",
11 "uuid": "some-uuid-string",
12 "sender": {
13 "id": 2,
14 "username": "peppy",
15 "profile_colour": "#3366FF",
16 "avatar_url": "https://a.ppy.sh/2?1519081077.png",
17 "country_code": "AU",
18 "is_active": true,
19 "is_bot": false,
20 "is_online": true,
21 "is_supporter": true
22 }
23}
24```
25
26Represents an individual Message within a [ChatChannel](#chatchannel).
27
28Field | Type | Description
29------------ | ----------------------- | ------------------------------------------------------------
30channel_id | integer | `channel_id` of where the message was sent
31content | string | message content
32is_action | boolean | was this an action? i.e. `/me dances`
33message_id | integer | unique identifier for message
34sender_id | integer | `user_id` of the sender
35timestamp | [Timestamp](#timestamp) | when the message was sent, ISO-8601
36type | string | type of message; 'action', 'markdown' or 'plain'
37uuid | string? | message identifier originally sent by client
38
39Optional attributes:
40
41Field | Type | Description
42---------- | ------------- | ------------------------------------------------------------
43sender | [User](#user) | embedded User object to save additional api lookups