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.

30 lines 984 B
"use strict"; /* * SPDX-License-Identifier: GPL-3.0-or-later * Copyright © 2025 BotForge */ Object.defineProperty(exports, "__esModule", { value: true }); const voiceEffect_1 = require("../../properties/voiceEffect"); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$effect", version: "2.3.0", description: "Retrieves data from an event whose context was a voice channel effect event", brackets: true, unwrap: true, output: structures_1.ArgType.Unknown, args: [ { name: "property", description: "The property to pull", rest: false, type: structures_1.ArgType.Enum, enum: voiceEffect_1.VoiceEffectProperty, required: true, }, ], execute(ctx, [prop]) { return this.success(voiceEffect_1.VoiceEffectProperties[prop](ctx.states?.voiceEffect?.new)); }, }); //# sourceMappingURL=effect.js.map