Skip to content

Commit

Permalink
add filter to the converstions_list
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyuutsu committed Dec 17, 2024
1 parent 4b07421 commit 451e374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/slack_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def parse_environment_variables():

def get_channel_id(client, channel_name):
try:
conversation_data = client.conversations_list()
conversation_data = client.conversations_list(
filter="public_channel,private_channel"
)
if not conversation_data.get("ok", False):
print("Failed to fetch channels")
sys.exit(2)
Expand Down

0 comments on commit 451e374

Please sign in to comment.