1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// ChatChannel
// {
// "channel_id": 1337,
// "current_user_attributes": {
// "can_message": true,
// "can_message_error": null,
// "last_read_id": 9150005005,
// },
// "name": "test channel",
// "description": "wheeeee",
// "icon": "/images/layout/avatar-guest@2x.png",
// "type": "GROUP",
// "last_read_id": 9150005005,
// "last_message_id": 9150005005,
// "moderated": false,
// "users": [
// 2,
// 3,
// 102
// ]
// }
// Represents an individual chat "channel" in the game.
// Field Type Description
// channel_id integer
// name string
// description string?
// icon string? display icon for the channel
// type ChannelType type of channel
// message_length_limit integer
// moderated boolean user can't send message when the value is true
// uuid string? value from requests that is relayed back to the sender.
// Optional attributes:
// Field Type Description
// current_user_attributes CurrentUserAttributes? only present on some responses
// last_read_id integer? Deprecated; use current_user_attributes.last_read_id.
// last_message_id integer? message_id of last known message (only returned in presence responses)
// recent_messages ChatMessage[]? Deprecated; up to 50 most recent messages
// users integer[]? array of user_id that are in the channel (not included for PUBLIC channels)
use ;
use crateChatMessage;
use crateCurrentUserAttributes;