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.
30 lines • 881 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const structures_1 = require("../structures");
exports.default = new structures_1.NativeFunction({
name: "$endsWith",
version: "1.0.0",
description: "Checks whether given string ends with X string",
unwrap: true,
args: [
{
name: "str",
description: "The string to check against",
type: structures_1.ArgType.String,
rest: false,
required: true,
},
{
name: "value",
required: true,
description: "The value to match at the end",
rest: false,
type: structures_1.ArgType.String,
},
],
brackets: true,
execute(_, [str, match]) {
return this.success(str.endsWith(match));
},
});
//# sourceMappingURL=endsWith.js.map