discord.js-selfbot-v13/src/client/websocket/handlers/RELATIONSHIP_REMOVE.js
2022-04-16 17:44:43 +07:00

14 lines
369 B
JavaScript

'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
client.relationships.cache.delete(data.id);
/**
* Emitted whenever a relationship is updated.
* @event Client#relationshipUpdate
* @param {UserID} user The userID that was updated
*/
client.emit(Events.RELATIONSHIP_REMOVE, data.id);
};