SlackWeb.Channels.rename

You're seeing just the function rename, go back to SlackWeb.Channels module for more information.
Link to this function

rename(channel, name, optional_params \\ %{})

View Source

Renames a channel.

Required Params

  • channel - Channel to rename
  • name - New name for channel.

Errors the API can return:

  • channel_not_found - Value passed for channel was invalid.
  • invalid_name - New name is invalid
  • name_taken - New channel name is taken
  • not_authorized - Caller cannot rename this channel
  • not_in_channel - Caller is not a member of the channel.