@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.
28 lines • 794 B
JavaScript
;
/*
* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2025 BotForge
*/
Object.defineProperty(exports, "__esModule", { value: true });
const structures_1 = require("../../structures");
exports.default = new structures_1.NativeFunction({
name: "$toLowerCase",
version: "1.0.0",
description: "Makes a string lowercase",
unwrap: true,
output: structures_1.ArgType.String,
args: [
{
name: "string",
description: "The string to turn lowercase",
type: structures_1.ArgType.String,
rest: true,
required: true,
},
],
brackets: true,
execute(ctx, [values]) {
return this.success(values.join(";").toLowerCase());
},
});
//# sourceMappingURL=toLowerCase.js.map