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.

31 lines 896 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$httpAppendValue", version: "1.4.0", description: "Appends a key-value to form data", brackets: true, unwrap: true, args: [ { name: "key", description: "The key name to add this value to", rest: false, required: true, type: structures_1.ArgType.String }, { name: "value", type: structures_1.ArgType.String, rest: false, required: true, description: "The value to set" } ], execute(ctx, [key, val]) { ctx.http.form?.append(key, val); return this.success(); }, }); //# sourceMappingURL=httpAppendValue.js.map