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.

38 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$isBoosting", version: "1.5.0", aliases: [ "$isBooster", "$memberIsBooster", "$memberIsBoosting" ], brackets: false, unwrap: true, output: structures_1.ArgType.Boolean, description: "Whether this user is boosting", 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 boost status for", rest: false, type: structures_1.ArgType.Member, pointer: 0, required: true, }, ], execute(ctx, [, member]) { member ??= ctx.member; return this.success(!!member?.premiumSince); }, }); //# sourceMappingURL=isBoosting.js.map