Skip to content

Commit

Permalink
Add domain to team.info API parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Apr 3, 2022
1 parent b3cb02a commit 711343a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion slack_sdk/web/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3954,12 +3954,13 @@ async def team_info(
self,
*,
team: Optional[str] = None,
domain: Optional[str] = None,
**kwargs,
) -> AsyncSlackResponse:
"""Gets information about the current team.
https://api.slack.com/methods/team.info
"""
kwargs.update({"team": team})
kwargs.update({"team": team, "domain": domain})
return await self.api_call("team.info", http_verb="GET", params=kwargs)

async def team_integrationLogs(
Expand Down
3 changes: 2 additions & 1 deletion slack_sdk/web/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3893,12 +3893,13 @@ def team_info(
self,
*,
team: Optional[str] = None,
domain: Optional[str] = None,
**kwargs,
) -> SlackResponse:
"""Gets information about the current team.
https://api.slack.com/methods/team.info
"""
kwargs.update({"team": team})
kwargs.update({"team": team, "domain": domain})
return self.api_call("team.info", http_verb="GET", params=kwargs)

def team_integrationLogs(
Expand Down
3 changes: 2 additions & 1 deletion slack_sdk/web/legacy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3904,12 +3904,13 @@ def team_info(
self,
*,
team: Optional[str] = None,
domain: Optional[str] = None,
**kwargs,
) -> Union[Future, SlackResponse]:
"""Gets information about the current team.
https://api.slack.com/methods/team.info
"""
kwargs.update({"team": team})
kwargs.update({"team": team, "domain": domain})
return self.api_call("team.info", http_verb="GET", params=kwargs)

def team_integrationLogs(
Expand Down

0 comments on commit 711343a

Please sign in to comment.