@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.
27 lines • 804 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const structures_1 = require("../../structures");
exports.default = new structures_1.NativeFunction({
name: "$shardID",
version: "1.0.0",
aliases: [
"$botShardIDs",
"$clientShardIDs"
],
description: "Returns the shard id of the client",
unwrap: true,
brackets: false,
args: [
{
name: "separator",
description: "The separator to use for every id",
rest: false,
type: structures_1.ArgType.String,
},
],
output: structures_1.ArgType.Number,
execute(ctx, [sep]) {
return this.success(ctx.runtime.extras ?? ctx.client.shard?.ids.join(sep ?? ", ") ?? 0);
},
});
//# sourceMappingURL=shardID.js.map