Sha256: 3d7095fc504b578f1d34e0ede7ed60e2cf47213c79f4e31419032fe148aa5818
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
class SlackSmartBot #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 return [] end end end
Version data entries
3 entries across 3 versions & 1 rubygems