Files
discord.js-selfbot/src/client/websocket/handlers/RELATIONSHIP_REMOVE.js
March 7th 391d972d98 document
2022-05-06 21:17:20 +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#relationshipRemove
* @param {UserId} user The userID that was updated
*/
client.emit(Events.RELATIONSHIP_REMOVE, data.id);
};