UNPKG

discord.js-selfbot-v13

Version:

A unofficial discord.js fork for creating selfbots [Based on discord.js v13]

17 lines (13 loc) 614 B
'use strict'; const VoiceChannelEffect = require('../../../structures/VoiceChannelEffect'); const { Events } = require('../../../util/Constants'); module.exports = (client, { d: data }) => { const guild = client.guilds.cache.get(data.guild_id); if (!guild) return; /** * Emmited when someone sends an effect, such as an emoji reaction, in a voice channel the client is connected to. * @event Client#voiceChannelEffectSend * @param {VoiceChannelEffect} voiceChannelEffect The sent voice channel effect */ client.emit(Events.VOICE_CHANNEL_EFFECT_SEND, new VoiceChannelEffect(data, guild)); };