Slack.Web.Channels.archive

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

archive(channel, optional_params \\ %{})

View Source

Archives a channel.

Required Params

  • channel - Channel to archive

Errors the API can return:

  • already_archived - Channel has already been archived.
  • cant_archive_general - You cannot archive the general channel
  • channel_not_found - Value passed for channel was invalid.
  • last_ra_channel - You cannot archive the last channel for a restricted account
  • restricted_action - A team preference prevents the authenticated user from archiving.