code: def channels_rename(self, *, channel: str, name: str, **kwargs) -> SlackResponse:
          
          self._validate_xoxp_token()
          kwargs.update({"channel": channel, "name": name})
          return self.api_call("channels.rename", json=kwargs)
docs: Renames a channel.
  
          Args:
              channel (str): The channel id. e.g. 'C1234567890'
              name (str): The new channel name. e.g. 'newchannel'