UNPKG

discord.js

Version:

A powerful library for interacting with the Discord API

17 lines (13 loc) 604 B
'use strict'; const VoiceChannelEffect = require('../../../structures/VoiceChannelEffect'); const Events = require('../../../util/Events'); module.exports = (client, { d: data }) => { const guild = client.guilds.cache.get(data.guild_id); if (!guild) return; /** * Emitted 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.VoiceChannelEffectSend, new VoiceChannelEffect(data, guild)); };