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.
22 lines • 679 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const structures_1 = require("../structures");
exports.default = new structures_1.NativeFunction({
name: "$channelIDs",
version: "1.3.0",
unwrap: true,
brackets: false,
description: "Returns every channel id",
args: [
{
name: "separator",
description: "The separator to use for every channel",
rest: false,
type: structures_1.ArgType.String
}
],
execute(ctx, [sep]) {
return this.success(ctx.client.channels.cache.map(x => x.id).join(sep ?? ", "));
},
});
//# sourceMappingURL=channelIDs.js.map
;