discord.js-selfbot-v13
Version:
A unofficial discord.js fork for creating selfbots [Based on discord.js v13]
15 lines (14 loc) • 455 B
JavaScript
;
const CallState = require('../../../structures/CallState');
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
for (const voice of packet.d.voice_states) {
client.actions.VoiceStateUpdate.handle(voice);
}
/**
* Emitted whenever received a call
* @event Client#callCreate
* @param {CallState} call Call
*/
client.emit(Events.CALL_CREATE, new CallState(client, packet.d));
};