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

leave(channel, optional_params \\ %{})

View Source

Leaves a private channel.

Required Params

  • channel - Private channel to leave

Errors the API can return:

  • cant_leave_last_channel - Authenticated user cannot leave the last channel they are in
  • channel_not_found - Value passed for channel was invalid.
  • is_archived - Group has been archived.
  • last_member - Authenticated user is the last member of a group and cannot leave it