document
This commit is contained in:
@@ -127,10 +127,16 @@ class Client extends BaseClient {
|
||||
*/
|
||||
this.users = new UserManager(this);
|
||||
|
||||
/** Patch
|
||||
*
|
||||
// Patch
|
||||
/**
|
||||
* All of the relationships {@link User}
|
||||
* @type {RelationshipsManager}
|
||||
*/
|
||||
this.relationships = new RelationshipsManager(this);
|
||||
/**
|
||||
* All of the settings {@link Object}
|
||||
* @type {ClientUserSettingManager}
|
||||
*/
|
||||
this.setting = new ClientUserSettingManager(this);
|
||||
/**
|
||||
* All of the guilds the client is currently handling, mapped by their ids -
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user