Skip to content

Commit

Permalink
lower requests to user_list
Browse files Browse the repository at this point in the history
  • Loading branch information
akiioto committed Oct 17, 2024
1 parent 3fc9b55 commit 5b3bfb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cloud-run/slack-message-sender/slack-message-sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_user_id_by_username(username: str) -> Optional[str]:

while True:
try:
response = slack_app.client.users_list(limit=20, cursor=next_cursor)
response = slack_app.client.users_list(limit=1000, cursor=next_cursor)
except SlackApiError as e:
print(f"Slack API error: {e.response['error']}")
return None
Expand Down

0 comments on commit 5b3bfb4

Please sign in to comment.