feat: new class Call

This commit is contained in:
Elysia
2023-03-05 17:05:40 +07:00
parent 11ac55fcf0
commit ee906b544e
7 changed files with 94 additions and 15 deletions

View File

@@ -1,10 +1,11 @@
'use strict';
const Call = require('../../../structures/Call');
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
/**
* Emitted whenever delete a call
* @event Client#callDelete
* @param {Snowflake} channelId DM / Group DM channel ID
* @param {Call} call Call
*/
client.emit(Events.CALL_DELETE, packet.d.channel_id);
client.emit(Events.CALL_DELETE, new Call(client, packet.d));
};