discord.js-selfbot-v13-fixed4
Version:
A unofficial discord.js fork for creating selfbots [Based on discord.js v13]
15 lines (12 loc) • 490 B
JavaScript
;
const { Events, RelationshipTypes } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
client.relationships.cache.delete(data.id);
/**
* Emitted whenever a relationship is delete.
* @event Client#relationshipRemove
* @param {Snowflake} user The userID that was updated
* @param {RelationshipTypes} type The type of the old relationship
*/
client.emit(Events.RELATIONSHIP_REMOVE, data.id, RelationshipTypes[data.type]);
};