slack.pinMessage pins one message.
Example
automations/pin-message.automation.ts
Inputs
Requires the containingconversationId and message timestamp.
Output
Completes without a value. Requirespins:write and access to the conversation.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pin a Slack message to its conversation.
slack.pinMessage pins one message.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Pin message", () => {
onDashboardRun({ title: "Pin message" })
slack.pinMessage({
conversationId: "C01234567",
timestamp: "1700000000.000001",
})
})
conversationId and message timestamp.
pins:write and access to the conversation.