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

Method channels_kick

slack_sdk/web/client.py:2543–2553  ·  view source on GitHub ↗

Removes a user from a channel.

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

Source from the content-addressed store, hash-verified

2541 return self.api_call("channels.join", json=kwargs)
2542
2543 def channels_kick(
2544 self,
2545 *,
2546 channel: str,
2547 user: str,
2548 **kwargs,
2549 ) -> SlackResponse:
2550 """Removes a user from a channel."""
2551 kwargs.update({"channel": channel, "user": user})
2552 kwargs = _remove_none_values(kwargs)
2553 return self.api_call("channels.kick", json=kwargs)
2554
2555 def channels_leave(
2556 self,

Callers

nothing calls this directly

Calls 2

_remove_none_valuesFunction · 0.85
api_callMethod · 0.45

Tested by

no test coverage detected