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 • 927 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const structures_1 = require("../structures");
exports.default = new structures_1.NativeFunction({
name: "$guildRoleIDs",
version: "1.3.0",
unwrap: true,
brackets: false,
description: "Returns every role id of the guild",
args: [
{
name: "guild ID",
rest: false,
required: true,
type: structures_1.ArgType.Guild,
description: "The guild to get role ids from"
},
{
name: "separator",
description: "The separator to use for every role",
rest: false,
type: structures_1.ArgType.String
}
],
execute(ctx, [guild, sep]) {
guild ??= ctx.guild;
return this.success(guild?.roles.cache.map(x => x.id).join(sep ?? ", "));
},
});
//# sourceMappingURL=guildRoleIDs.js.map