slack.archivePublicChannel archives a public channel.
Example
automations/archive-public-channel.automation.ts
Inputs
Requires the stable publicchannelId.
Output
Completes without a value. Requires the bot scopechannels:manage.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Archive a public Slack channel.
slack.archivePublicChannel archives a public channel.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Archive public channel", () => {
onDashboardRun({ title: "Archive public channel" })
slack.archivePublicChannel({ channelId: "C01234567" })
})
channelId.
channels:manage.