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.

33 lines 981 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../structures"); exports.default = new structures_1.NativeFunction({ name: "$commandNames", version: "1.0.6", description: "Return commands with given type", brackets: true, args: [ { name: "type", description: "The command type to pull names from", rest: false, required: true, type: structures_1.ArgType.String, }, { name: "separator", description: "The separator to use for every name", rest: false, type: structures_1.ArgType.String, }, ], unwrap: true, execute(ctx, [type, sep]) { return this.success(ctx.client.commands .get(type) .map((x) => x.name) .filter(Boolean) .join(sep || ", ")); }, }); //# sourceMappingURL=commandNames.js.map