slack.onChannelRenamed emits channel_rename events for public channels visible to the bot.
automations/watch-slack-channel-names.automation.ts
channelId, name, createdAt, the typed original event, and the complete envelope.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run an automation when a public Slack channel is renamed.
slack.onChannelRenamed emits channel_rename events for public channels visible to the bot.
import { automation } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Watch Slack channel names", () => {
const channel = slack.onChannelRenamed()
// Use channel.channelId to update the stored Slack channel name.
})
channelId, name, createdAt, the typed original event, and the complete envelope.