@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.
37 lines • 1.05 kB
JavaScript
"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: "$soundEmoji",
version: "2.4.0",
description: "Returns the emoji of a sound",
brackets: false,
unwrap: true,
args: [
{
name: "guild ID",
description: "The guild to get sound from",
rest: false,
type: structures_1.ArgType.Guild,
required: true,
},
{
name: "sound ID",
description: "The sound to return its emoji",
rest: false,
required: true,
type: structures_1.ArgType.SoundboardSound,
pointer: 0,
},
],
output: structures_1.ArgType.String,
execute(ctx, [, sound]) {
sound ??= ctx.sound;
return this.success(sound?.emoji);
},
});
//# sourceMappingURL=soundEmoji.js.map