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.

25 lines 788 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$setAutomodAllowList", version: "1.5.0", description: "Sets allowed words for current automod rule", unwrap: true, brackets: true, args: [ { name: "words", description: "The words to allow and whitelist", rest: true, required: true, type: structures_1.ArgType.String, }, ], execute(ctx, [words]) { ctx.automodRule.triggerMetadata ??= {}; ctx.automodRule.triggerMetadata.allowList = words; return this.success(); }, }); //# sourceMappingURL=setAutomodAllowList.js.map