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

Method channels_rename

slack_sdk/web/client.py:2585–2595  ·  view source on GitHub ↗

Renames a channel.

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

Source from the content-addressed store, hash-verified

2583 return self.api_call("channels.mark", json=kwargs)
2584
2585 def channels_rename(
2586 self,
2587 *,
2588 channel: str,
2589 name: str,
2590 **kwargs,
2591 ) -> SlackResponse:
2592 """Renames a channel."""
2593 kwargs.update({"channel": channel, "name": name})
2594 kwargs = _remove_none_values(kwargs)
2595 return self.api_call("channels.rename", json=kwargs)
2596
2597 def channels_replies(
2598 self,

Callers

nothing calls this directly

Calls 2

_remove_none_valuesFunction · 0.85
api_callMethod · 0.45

Tested by

no test coverage detected