Sha256: 5206a974a34206a03e2a6d918ac13286dff806eb5cf478d60db4a7ccff590b74

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

#todo: add pagination for case more than 1000 members in the channel
def get_channel_members(channel_id)
    begin
        if config.simulate and config.key?(:client)
            client.web_client.conversations_members[channel_id.to_sym].members
        else
            client.web_client.conversations_members(channel: channel_id, limit: 1000).members
        end
    rescue Exception => stack
        @logger.warn stack
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-smart-bot-1.10.0 lib/slack/smart-bot/comm/get_channel_members.rb