2022-07-15 17:26:25 +07:00
|
|
|
'use strict';
|
2023-03-05 17:05:40 +07:00
|
|
|
const Call = require('../../../structures/Call');
|
2022-07-15 17:26:25 +07:00
|
|
|
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
|
2022-07-15 17:26:25 +07:00
|
|
|
*/
|
2023-03-05 17:05:40 +07:00
|
|
|
client.emit(Events.CALL_UPDATE, new Call(client, packet.d));
|
2022-07-15 17:26:25 +07:00
|
|
|
};
|