chore: Disable archived channels from the slack integration (#7904)

This commit is contained in:
Muhsin Keloth
2023-09-12 22:21:50 +05:30
committed by GitHub
parent 71e9566854
commit 4fa299ff15

View File

@@ -24,7 +24,7 @@ class Integrations::Slack::ChannelBuilder
end
def channels
conversations_list = slack_client.conversations_list(types: 'public_channel, private_channel')
conversations_list = slack_client.conversations_list(types: 'public_channel, private_channel', exclude_archived: true)
channel_list = conversations_list.channels
while conversations_list.response_metadata.next_cursor.present?
conversations_list = slack_client.conversations_list(cursor: conversations_list.response_metadata.next_cursor)