diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index 04c4a4d7..cf55d550 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -2865,12 +2865,18 @@ async def conversations_invite( *, channel: str, users: Union[str, Sequence[str]], + force: Optional[bool] = None, **kwargs, ) -> AsyncSlackResponse: """Invites users to a channel. https://api.slack.com/methods/conversations.invite """ - kwargs.update({"channel": channel}) + kwargs.update( + { + "channel": channel, + "force": force, + } + ) if isinstance(users, (list, Tuple)): kwargs.update({"users": ",".join(users)}) else: diff --git a/slack_sdk/web/client.py b/slack_sdk/web/client.py index d06d0632..4cf72a90 100644 --- a/slack_sdk/web/client.py +++ b/slack_sdk/web/client.py @@ -2856,12 +2856,18 @@ def conversations_invite( *, channel: str, users: Union[str, Sequence[str]], + force: Optional[bool] = None, **kwargs, ) -> SlackResponse: """Invites users to a channel. https://api.slack.com/methods/conversations.invite """ - kwargs.update({"channel": channel}) + kwargs.update( + { + "channel": channel, + "force": force, + } + ) if isinstance(users, (list, Tuple)): kwargs.update({"users": ",".join(users)}) else: diff --git a/slack_sdk/web/legacy_client.py b/slack_sdk/web/legacy_client.py index 466e1008..3ebc5eae 100644 --- a/slack_sdk/web/legacy_client.py +++ b/slack_sdk/web/legacy_client.py @@ -2867,12 +2867,18 @@ def conversations_invite( *, channel: str, users: Union[str, Sequence[str]], + force: Optional[bool] = None, **kwargs, ) -> Union[Future, SlackResponse]: """Invites users to a channel. https://api.slack.com/methods/conversations.invite """ - kwargs.update({"channel": channel}) + kwargs.update( + { + "channel": channel, + "force": force, + } + ) if isinstance(users, (list, Tuple)): kwargs.update({"users": ",".join(users)}) else: