discord.onEntitlementDeleted receives ENTITLEMENT_DELETE when Discord removes an entitlement.
automations/discord-entitlement-delete.automation.ts
deleted: true. Optional account selects the Discord application.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Start an automation when Discord deletes an application entitlement.
discord.onEntitlementDeleted receives ENTITLEMENT_DELETE when Discord removes an entitlement.
import { automation } from "automate.ax"
import { discord } from "automate.ax/discord"
export default automation("Track Discord entitlement deletion", () => {
const event = discord.onEntitlementDeleted()
// Revoke the Discord SKU identified by event.data.skuId.
})
deleted: true. Optional account selects the Discord application.