Skip to content

Commit f9d52a4

Browse files
authored
Add domain to team.info API parameters (#1195)
1 parent b3cb02a commit f9d52a4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

slack_sdk/web/async_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3954,12 +3954,13 @@ async def team_info(
39543954
self,
39553955
*,
39563956
team: Optional[str] = None,
3957+
domain: Optional[str] = None,
39573958
**kwargs,
39583959
) -> AsyncSlackResponse:
39593960
"""Gets information about the current team.
39603961
https://api.slack.com/methods/team.info
39613962
"""
3962-
kwargs.update({"team": team})
3963+
kwargs.update({"team": team, "domain": domain})
39633964
return await self.api_call("team.info", http_verb="GET", params=kwargs)
39643965

39653966
async def team_integrationLogs(

slack_sdk/web/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3893,12 +3893,13 @@ def team_info(
38933893
self,
38943894
*,
38953895
team: Optional[str] = None,
3896+
domain: Optional[str] = None,
38963897
**kwargs,
38973898
) -> SlackResponse:
38983899
"""Gets information about the current team.
38993900
https://api.slack.com/methods/team.info
39003901
"""
3901-
kwargs.update({"team": team})
3902+
kwargs.update({"team": team, "domain": domain})
39023903
return self.api_call("team.info", http_verb="GET", params=kwargs)
39033904

39043905
def team_integrationLogs(

slack_sdk/web/legacy_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3904,12 +3904,13 @@ def team_info(
39043904
self,
39053905
*,
39063906
team: Optional[str] = None,
3907+
domain: Optional[str] = None,
39073908
**kwargs,
39083909
) -> Union[Future, SlackResponse]:
39093910
"""Gets information about the current team.
39103911
https://api.slack.com/methods/team.info
39113912
"""
3912-
kwargs.update({"team": team})
3913+
kwargs.update({"team": team, "domain": domain})
39133914
return self.api_call("team.info", http_verb="GET", params=kwargs)
39143915

39153916
def team_integrationLogs(

0 commit comments

Comments
 (0)