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

Method channels_setTopic

slack_sdk/web/client.py:2620–2630  ·  view source on GitHub ↗

Sets the topic for a channel.

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

Source from the content-addressed store, hash-verified

2618 return self.api_call("channels.setPurpose", json=kwargs)
2619
2620 def channels_setTopic(
2621 self,
2622 *,
2623 channel: str,
2624 topic: str,
2625 **kwargs,
2626 ) -> SlackResponse:
2627 """Sets the topic for a channel."""
2628 kwargs.update({"channel": channel, "topic": topic})
2629 kwargs = _remove_none_values(kwargs)
2630 return self.api_call("channels.setTopic", json=kwargs)
2631
2632 def channels_unarchive(
2633 self,

Callers

nothing calls this directly

Calls 2

_remove_none_valuesFunction · 0.85
api_callMethod · 0.45

Tested by

no test coverage detected