discord.js-selfbot-v13
Version:
A unofficial discord.js fork for creating selfbots [Based on discord.js v13]
16 lines (15 loc) • 557 B
JavaScript
;
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 {Snowflake} channelId DM / Group DM channel ID
* @param {string} region Voice server region
* @param {?Snowflake[]} ringing List of user ID who is ringing
*/
client.emit(Events.CALL_CREATE, packet.d.channel_id, packet.d.region, packet.d.ringing);
};