UNPKG

@tryforge/forgescript

Version:

ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.

28 lines 973 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("../../core"); const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHandler"); exports.default = new DiscordEventHandler_1.DiscordEventHandler({ name: "entitlementDelete", version: "1.5.0", description: "This event is fired when an entitlement is deleted", listener: async function (en) { const commands = this.commands.get("entitlementDelete"); for (const command of commands) { core_1.Interpreter.run({ obj: en, command, client: this, states: { entitlement: { new: en, old: en }, }, data: command.compiled.code, args: [], }); } } }); //# sourceMappingURL=entitlementDelete.js.map