UNPKG

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.

38 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../structures"); exports.default = new structures_1.NativeFunction({ name: "$hasPerms", version: "1.0.0", description: "Returns whether given member has X perms", unwrap: true, brackets: true, args: [ { name: "guild ID", description: "The guild to pull member from", rest: false, required: true, type: structures_1.ArgType.Guild, }, { name: "user ID", description: "The user to check for perms", rest: false, type: structures_1.ArgType.Member, required: true, pointer: 0, }, { name: "perms", description: "The perms to check for", rest: true, type: structures_1.ArgType.String, required: true, }, ], execute(_, [, member, perms]) { return this.success(member.permissions.has(perms)); }, }); //# sourceMappingURL=hasPerms.js.map