slack.setPublicChannelPurpose replaces a public channel’s plain-text purpose.
Example
automations/set-public-channel-purpose.automation.ts
Inputs
RequireschannelId and the new purpose. Pass an empty string to clear it.
Output
Returns the updated conversation. Requires eitherchannels:manage or channels:write.topic.