SlackWeb.Channels.set_topic

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

set_topic(channel, topic, optional_params \\ %{})

View Source

Sets the topic for a channel.

Required Params

  • channel - Channel to set the topic of
  • topic - The new topic ex: My Topic

Errors the API can return:

  • channel_not_found - Value passed for channel was invalid.
  • is_archived - Channel has been archived.
  • not_in_channel - Authenticated user is not in the channel.
  • too_long - Topic was longer than 250 characters.
  • user_is_restricted - Setting the topic is a restricted action.