discord.js-selfbot-v13/src/client/websocket/handlers/RELATIONSHIP_REMOVE.js
March 7th 07d52ee41b fix: opcode 24 (Interaction search function)
Todo: Rewrite slash command ...
2022-06-12 19:13:12 +07:00

15 lines
490 B
JavaScript

'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.
* @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]);
};