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.

24 lines 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const NativeFunction_1 = require("../../structures/@internal/NativeFunction"); exports.default = new NativeFunction_1.NativeFunction({ name: "$httpSetBody", version: "1.0.0", description: "Sets a JSON body for the request", args: [ { name: "body", description: "The JSON body", rest: false, required: true, type: NativeFunction_1.ArgType.String, }, ], unwrap: true, brackets: true, execute(ctx, [body]) { ctx.http.body = body; return this.success(); }, }); //# sourceMappingURL=httpSetBody.js.map