2022-04-12 05:46:08 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const { Events } = require('../../../util/Constants');
|
|
|
|
|
|
|
|
module.exports = (client, { d: data }) => {
|
2022-04-16 10:44:43 +00:00
|
|
|
client.relationships.cache.delete(data.id);
|
|
|
|
/**
|
|
|
|
* Emitted whenever a relationship is updated.
|
2022-05-06 14:17:20 +00:00
|
|
|
* @event Client#relationshipRemove
|
2022-06-11 13:17:27 +00:00
|
|
|
* @param {Snowflake} user The userID that was updated
|
2022-04-16 10:44:43 +00:00
|
|
|
*/
|
|
|
|
client.emit(Events.RELATIONSHIP_REMOVE, data.id);
|
2022-04-12 05:46:08 +00:00
|
|
|
};
|