This commit is contained in:
March 7th
2022-05-06 21:17:20 +07:00
parent 89508c214b
commit 391d972d98
10 changed files with 47 additions and 30 deletions

View File

@@ -9,8 +9,8 @@ module.exports = (client, { d: data }) => {
client.relationships.cache.set(data.id, data.type);
/**
* Emitted whenever a relationship is updated.
* @event Client#relationshipUpdate
* @param {UserID} user The userID that was updated
* @event Client#relationshipAdd
* @param {UserId} user The userID that was updated
* @param {Number} type The new relationship type
*/
client.emit(Events.RELATIONSHIP_ADD, data.id, data.type);

View File

@@ -6,8 +6,8 @@ module.exports = (client, { d: data }) => {
client.relationships.cache.delete(data.id);
/**
* Emitted whenever a relationship is updated.
* @event Client#relationshipUpdate
* @param {UserID} user The userID that was updated
* @event Client#relationshipRemove
* @param {UserId} user The userID that was updated
*/
client.emit(Events.RELATIONSHIP_REMOVE, data.id);
};