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

Method channels_setPurpose

slack_sdk/web/client.py:2608–2618  ·  view source on GitHub ↗

Sets the purpose for a channel.

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

Source from the content-addressed store, hash-verified

2606 return self.api_call("channels.replies", http_verb="GET", params=kwargs)
2607
2608 def channels_setPurpose(
2609 self,
2610 *,
2611 channel: str,
2612 purpose: str,
2613 **kwargs,
2614 ) -> SlackResponse:
2615 """Sets the purpose for a channel."""
2616 kwargs.update({"channel": channel, "purpose": purpose})
2617 kwargs = _remove_none_values(kwargs)
2618 return self.api_call("channels.setPurpose", json=kwargs)
2619
2620 def channels_setTopic(
2621 self,

Callers

nothing calls this directly

Calls 2

_remove_none_valuesFunction · 0.85
api_callMethod · 0.45

Tested by

no test coverage detected