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

Method channels_leave

slack_sdk/web/client.py:2555–2564  ·  view source on GitHub ↗

Leaves a channel.

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

Source from the content-addressed store, hash-verified

2553 return self.api_call("channels.kick", json=kwargs)
2554
2555 def channels_leave(
2556 self,
2557 *,
2558 channel: str,
2559 **kwargs,
2560 ) -> SlackResponse:
2561 """Leaves a channel."""
2562 kwargs.update({"channel": channel})
2563 kwargs = _remove_none_values(kwargs)
2564 return self.api_call("channels.leave", json=kwargs)
2565
2566 def channels_list(
2567 self,

Callers

nothing calls this directly

Calls 2

_remove_none_valuesFunction · 0.85
api_callMethod · 0.45

Tested by

no test coverage detected