lib/slack/plugin.rb in danger-slack-0.0.2 vs lib/slack/plugin.rb in danger-slack-0.0.3

- old
+ new

@@ -49,9 +49,18 @@ def channels res = @conn.get 'channels.list', token: @api_token Array(JSON.parse(res.body)['channels']) end + # get slack team groups (private channels) + # For more information, see also http://api.slack.com/methods/groups.list + # + # @return [[Hash]] + def groups + res = @conn.get 'groups.list', token: @api_token + Array(JSON.parse(res.body)['groups']) + end + # notify to Slack # # @param [String] channel # It is channel to be notified, defaults to '#general' # @param [String] text