Delete Scheduled Message

Deletes a pending scheduled message before it is sent

Usage #

// Import the typed helper
import { deleteScheduledMessage } from "@hotglue/sdk/slack";
const result = await client.execute({
...deleteScheduledMessage({
channel: string,
scheduled_message_id: string,
}),
userId: "user_123",
});
// result is typed as DeleteScheduledMessageOutput
const result = await client.execute({
integration: "slack",
tool: "delete_scheduled_message",
userId: "user_123",
input: {
channel: string,
scheduled_message_id: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["slack"],
userId: "user_123",
}),
});
await agent.generate("run the Delete Scheduled Message tool");

Required Permissions #

chat:write

Input Schema #

channel string required

Channel containing the scheduled message

scheduled_message_id string required

ID of the scheduled message to delete

Output Schema #

ok bool required

This tool calls: #

POST https://slack.com/api/chat.deleteScheduledMessage