Files
discord.js-selfbot/src/client/websocket/handlers/RELATIONSHIP_REMOVE.js

15 lines
490 B
JavaScript
Raw Normal View History

'use strict';
const { Events, RelationshipTypes } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
client.relationships.cache.delete(data.id);
/**
* Emitted whenever a relationship is delete.
2022-05-06 21:17:20 +07:00
* @event Client#relationshipRemove
2022-06-11 20:17:27 +07:00
* @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]);
};