diff --git a/src/client/websocket/handlers/CALL_CREATE.js b/src/client/websocket/handlers/CALL_CREATE.js index 4ff9c01..d32888d 100644 --- a/src/client/websocket/handlers/CALL_CREATE.js +++ b/src/client/websocket/handlers/CALL_CREATE.js @@ -1,5 +1,5 @@ 'use strict'; -const Call = require('../../../structures/Call'); +const CallState = require('../../../structures/CallState'); const { Events } = require('../../../util/Constants'); module.exports = (client, packet) => { for (const voice of packet.d.voice_states) { @@ -8,7 +8,7 @@ module.exports = (client, packet) => { /** * Emitted whenever received a call * @event Client#callCreate - * @param {Call} call Call + * @param {CallState} call Call */ - client.emit(Events.CALL_CREATE, new Call(client, packet.d)); + client.emit(Events.CALL_CREATE, new CallState(client, packet.d)); }; diff --git a/src/client/websocket/handlers/CALL_DELETE.js b/src/client/websocket/handlers/CALL_DELETE.js index 996b97b..ccf4711 100644 --- a/src/client/websocket/handlers/CALL_DELETE.js +++ b/src/client/websocket/handlers/CALL_DELETE.js @@ -1,5 +1,5 @@ 'use strict'; -const Call = require('../../../structures/Call'); +const CallState = require('../../../structures/CallState'); const { Events } = require('../../../util/Constants'); module.exports = (client, packet) => { /** @@ -7,5 +7,5 @@ module.exports = (client, packet) => { * @event Client#callDelete * @param {Call} call Call */ - client.emit(Events.CALL_DELETE, new Call(client, packet.d)); + client.emit(Events.CALL_DELETE, new CallState(client, packet.d)); }; diff --git a/src/client/websocket/handlers/CALL_UPDATE.js b/src/client/websocket/handlers/CALL_UPDATE.js index 377527e..ef72fc0 100644 --- a/src/client/websocket/handlers/CALL_UPDATE.js +++ b/src/client/websocket/handlers/CALL_UPDATE.js @@ -1,5 +1,5 @@ 'use strict'; -const Call = require('../../../structures/Call'); +const CallState = require('../../../structures/CallState'); const { Events } = require('../../../util/Constants'); module.exports = (client, packet) => { /** @@ -7,5 +7,5 @@ module.exports = (client, packet) => { * @event Client#callUpdate * @param {Call} call Call */ - client.emit(Events.CALL_UPDATE, new Call(client, packet.d)); + client.emit(Events.CALL_UPDATE, new CallState(client, packet.d)); };