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.

23 lines 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../structures"); exports.default = new structures_1.NativeFunction({ name: "$isBot", version: "1.0.0", description: "Whether the user is a bot", unwrap: true, args: [ { name: "user ID", description: "The user to check whether its a bot", required: true, rest: false, type: structures_1.ArgType.User, }, ], brackets: false, execute(ctx, [user]) { return this.success(Boolean((user ?? ctx.user)?.bot)); }, }); //# sourceMappingURL=isBot.js.map