12 lines
346 B
JavaScript
12 lines
346 B
JavaScript
'use strict';
|
|
const CallState = require('../../../structures/CallState');
|
|
const { Events } = require('../../../util/Constants');
|
|
module.exports = (client, packet) => {
|
|
/**
|
|
* Emitted whenever update a call
|
|
* @event Client#callUpdate
|
|
* @param {Call} call Call
|
|
*/
|
|
client.emit(Events.CALL_UPDATE, new CallState(client, packet.d));
|
|
};
|