discord.leaveThread remove the connected Discord bot from a thread.
automations/discord-leave-thread.automation.ts
Inputs
RequiredthreadId. Optional second argument { account } selects the Discord binding.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Remove the connected Discord bot from a thread.
discord.leaveThread remove the connected Discord bot from a thread.
import { automation, onHttpRequest } from "automate.ax"
import { discord } from "automate.ax/discord"
export default automation("Leave thread", () => {
onHttpRequest({ scope: "automation" })
discord.leaveThread({ threadId: "345678901234567890" })
})
threadId. Optional second argument { account } selects the Discord binding.