Codebase list golang-github-nlopes-slack / c13748e
Add some docs to groups Norberto Lopes 8 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
44 calls, as well as the Real-Time Messaging protocol over websocket, in
55 a fully managed way.
66
7 This fork breaks many things `github.com/nlopes/slack`, and improves
8 the RTM a lot.
7
8 Note: If you just updated from master and it broke your implementation, please check [0.0.1](https://github.com/nlopes/slack/releases/tag/v0.0.1)
99
1010 ## Installing
1111
3838 return response, nil
3939 }
4040
41 // ArchiveGroup archives a private group
4142 func (api *Client) ArchiveGroup(group string) error {
4243 values := url.Values{
4344 "token": {api.config.token},
9495 return &response.Group, nil
9596 }
9697
98 // CloseGroup closes a private group
9799 func (api *Client) CloseGroup(group string) (bool, bool, error) {
98100 values := url.Values{
99101 "token": {api.config.token},
106108 return response.NoOp, response.AlreadyClosed, nil
107109 }
108110
111 // GetGroupHistory fetches all the history for a private group
109112 func (api *Client) GetGroupHistory(group string, params HistoryParameters) (*History, error) {
110113 values := url.Values{
111114 "token": {api.config.token},
134137 return &response.History, nil
135138 }
136139
140 // InviteUserToGroup invites a specific user to a private group
137141 func (api *Client) InviteUserToGroup(group, user string) (*Group, bool, error) {
138142 values := url.Values{
139143 "token": {api.config.token},