Sha256: 678a45962ca0e0e050970ebcbaa2a0332c0835c99a000db282fd3631046c4e52

Contents?: true

Size: 530 Bytes

Versions: 14

Compression:

Stored size: 530 Bytes

Contents

#todo: add pagination for case more than 1000 members in the channel
def get_channel_members(channel_id)
    begin
        if channel_id.nil?
            return nil
        else
            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
        end
    rescue Exception => stack
        @logger.warn stack
    end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
slack-smart-bot-1.13.2 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.13.1 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.13.0 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.9 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.8 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.7 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.6 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.5 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.4 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.3 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.2 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.1 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.12.0 lib/slack/smart-bot/comm/get_channel_members.rb
slack-smart-bot-1.11.0 lib/slack/smart-bot/comm/get_channel_members.rb