Files
discord.js-selfbot/src/client/websocket/handlers/CALL_UPDATE.js

12 lines
331 B
JavaScript
Raw Normal View History

'use strict';
2023-03-05 17:05:40 +07:00
const Call = require('../../../structures/Call');
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
/**
* Emitted whenever update a call
* @event Client#callUpdate
2023-03-05 17:05:40 +07:00
* @param {Call} call Call
*/
2023-03-05 17:05:40 +07:00
client.emit(Events.CALL_UPDATE, new Call(client, packet.d));
};