Codebase list golang-github-nlopes-slack / ba72f9f
moved IsChannel, IsGroup, IsGeneral, IsMember all up to the GroupConversation level, of which Channel and Group of embedders. Alexandre Bourget 8 years ago
3 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1818 // Channel contains information about the channel
1919 type Channel struct {
2020 GroupConversation
21 IsChannel bool `json:"is_channel"`
22 IsGeneral bool `json:"is_general"`
23 IsMember bool `json:"is_member"`
2421 }
2522
2623 func channelRequest(path string, values url.Values, debug bool) (*channelResponseFull, error) {
1515 Conversation
1616 Name string `json:"name"`
1717 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"`
1822 IsArchived bool `json:"is_archived"`
1923 Members []string `json:"members"`
2024 NumMembers int `json:"num_members,omitempty"`
88 // Group contains all the information for a group
99 type Group struct {
1010 GroupConversation
11 IsGroup bool `json:"is_group"`
1211 }
1312
1413 type groupResponseFull struct {