Slack.Web.Channels.leave

You're seeing just the function leave, go back to Slack.Web.Channels module for more information.
Link to this function

leave(channel, optional_params \\ %{})

View Source

Leaves a channel.

Required Params

  • channel - Channel to leave

Errors the API can return:

  • cant_leave_general - Authenticated user cannot leave the general channel
  • channel_not_found - Value passed for channel was invalid.
  • is_archived - Channel has been archived.