Sign In

subscriptionDelete

This event is fired when a subscription is deleted

v2.5.0+

Register the event

Enable subscriptionDelete in events in your ForgeClient options in index.js:

const { ForgeClient } = require("@tryforge/forgescript")

const client = new ForgeClient({
  events: [
    "subscriptionDelete"
  ],
  intents: [
    "Guilds"
  ]
})

Handle the event

Listen and react when subscriptionDelete is triggered using an inline command or an external handler file:

client.commands.add({
  type: "subscriptionDelete",
  code: `$log[subscriptionDelete event was triggered!]`
})

Was this page helpful?