slack.joinPublicChannel adds the installed bot to an existing public channel.
Example
automations/join-public-channel.automation.ts
Inputs
Requires the stable publicchannelId.
Output
Returns the joined conversation. Requireschannels:join.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Join an existing public Slack channel.
slack.joinPublicChannel adds the installed bot to an existing public channel.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Join public channel", () => {
onDashboardRun({ title: "Join public channel" })
slack.joinPublicChannel({ channelId: "C01234567" })
})
channelId.
channels:join.