lib/lita/adapters/slack.rb
# Returns the members of a mpim, but only can do so if it's a member
Returns the members of a mpim, but only can do so if it's a member
Returns the members of a mpim but only can do so if it ' s a member
def mpim_roster(room_id, api)
        response = api.mpim_list
        mpim = response['groups'].select { |hash| hash['id'].eql? room_id }.first
        mpim.nil? ? [] : mpim['members']
      end
def mpim_roster ( room_id , api ) response = api . mpim_list mpim = response [ 'groups' ] . select { | hash | hash [ 'id' ] . eql? room_id } . first mpim . nil? ? [ ] : mpim [ 'members' ] end
Returns the members of a mpim, but only can do so if it's a member
Returns the members of a mpim but only can do so if it ' s a member
room_id
<not_specific>
api
<not_specific>