UNPKG

@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.

36 lines 1.07 kB
"use strict"; /* * SPDX-License-Identifier: GPL-3.0-or-later * Copyright © 2025 BotForge */ Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$roleUnicodeEmoji", version: "1.3.0", output: structures_1.ArgType.String, description: "Returns the unicode emoji used by the role", brackets: false, unwrap: true, args: [ { name: "guild ID", description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", description: "The role to return its unicode emote", rest: false, type: structures_1.ArgType.Role, pointer: 0, required: true, }, ], execute(ctx, [, role]) { return this.success((role ?? ctx.role)?.unicodeEmoji); }, }); //# sourceMappingURL=roleUnicodeEmoji.js.map