UNPKG

discord.js-selfbot-v13

Version:

A unofficial discord.js fork for creating selfbots [Based on discord.js v13]

18 lines (15 loc) 701 B
'use strict'; const { Events } = require('../../../util/Constants'); module.exports = (client, { d: data }) => { client.relationships.cache.delete(data.id); client.relationships.friendNicknames.delete(data.id); client.relationships.sinceCache.delete(data.id); /** * Emitted when a relationship is removed, relevant to the current user. * @event Client#relationshipRemove * @param {Snowflake} user The userID that was updated * @param {RelationshipType} type The type of the old relationship * @param {string | null} nickname The nickname of the user in this relationship (1-32 characters) */ client.emit(Events.RELATIONSHIP_REMOVE, data.id, data.type, data.nickname); };