discord.js-selfbot-v13
Version:
A unofficial discord.js fork for creating selfbots [Based on discord.js v13]
17 lines (16 loc) • 644 B
JavaScript
;
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
const channel = client.channels.cache.get(packet.d.channel_id);
if (channel) {
if (!channel._recipients) channel._recipients = [];
channel._recipients = channel._recipients.filter(u => u.id !== packet.d.user.id);
/**
* Emitted whenever a recipient is removed from a group DM.
* @event Client#channelRecipientRemove
* @param {GroupDMChannel} channel Group DM channel
* @param {User} user User
*/
client.emit(Events.CHANNEL_RECIPIENT_REMOVE, channel, client.users._add(packet.d.user));
}
};