moved IsChannel, IsGroup, IsGeneral, IsMember all up to the GroupConversation
level, of which Channel and Group of embedders.
Alexandre Bourget
8 years ago
18 | 18 |
// Channel contains information about the channel
|
19 | 19 |
type Channel struct {
|
20 | 20 |
GroupConversation
|
21 | |
IsChannel bool `json:"is_channel"`
|
22 | |
IsGeneral bool `json:"is_general"`
|
23 | |
IsMember bool `json:"is_member"`
|
24 | 21 |
}
|
25 | 22 |
|
26 | 23 |
func channelRequest(path string, values url.Values, debug bool) (*channelResponseFull, error) {
|
15 | 15 |
Conversation
|
16 | 16 |
Name string `json:"name"`
|
17 | 17 |
Creator string `json:"creator"`
|
|
18 |
IsChannel bool `json:"is_channel"`
|
|
19 |
IsGroup bool `json:"is_group"`
|
|
20 |
IsGeneral bool `json:"is_general"`
|
|
21 |
IsMember bool `json:"is_member"`
|
18 | 22 |
IsArchived bool `json:"is_archived"`
|
19 | 23 |
Members []string `json:"members"`
|
20 | 24 |
NumMembers int `json:"num_members,omitempty"`
|
8 | 8 |
// Group contains all the information for a group
|
9 | 9 |
type Group struct {
|
10 | 10 |
GroupConversation
|
11 | |
IsGroup bool `json:"is_group"`
|
12 | 11 |
}
|
13 | 12 |
|
14 | 13 |
type groupResponseFull struct {
|