MCPcopy
hub / github.com/slackapi/python-slack-sdk / channels_invite

Method channels_invite

slack_sdk/web/client.py:2520–2530  ·  view source on GitHub ↗

Invites a user to a channel.

(
        self,
        *,
        channel: str,
        user: str,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

2518 return self.api_call("channels.info", http_verb="GET", params=kwargs)
2519
2520 def channels_invite(
2521 self,
2522 *,
2523 channel: str,
2524 user: str,
2525 **kwargs,
2526 ) -> SlackResponse:
2527 """Invites a user to a channel."""
2528 kwargs.update({"channel": channel, "user": user})
2529 kwargs = _remove_none_values(kwargs)
2530 return self.api_call("channels.invite", json=kwargs)
2531
2532 def channels_join(
2533 self,

Callers

nothing calls this directly

Calls 2

_remove_none_valuesFunction · 0.85
api_callMethod · 0.45

Tested by

no test coverage detected