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.

31 lines 1.06 kB
"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: "guildBanAdd", version: "1.4.0", description: "This event is fired when a member is banned from the guild", listener: async function (m) { const commands = this.commands.get("guildBanAdd"); for (const command of commands) { core_1.Interpreter.run({ obj: { guild: m.guild, user: m.user }, command, client: this, states: { ban: { new: m }, }, data: command.compiled.code, args: [], }); } }, intents: ["GuildMembers", "GuildModeration"], }); //# sourceMappingURL=guildBanAdd.js.map