v2.1.0
fix: ClientUser.notes return empty Collection fix: Recieve messages from large servers #72 feat: checkUpdate return Debug event (not console.log) feat: RelationshipAdd event, param type return RelationshipTypes feat: online status when login feat: fix documents
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const { Events } = require('../../../util/Constants');
|
||||
const { Events, Relationship } = require('../../../util/Constants');
|
||||
|
||||
module.exports = (client, { d: data }) => {
|
||||
if (data.user) {
|
||||
@@ -11,7 +11,7 @@ module.exports = (client, { d: data }) => {
|
||||
* Emitted whenever a relationship is updated.
|
||||
* @event Client#relationshipAdd
|
||||
* @param {UserId} user The userID that was updated
|
||||
* @param {Number} type The new relationship type
|
||||
* @param {RelationshipType} type The new relationship type
|
||||
*/
|
||||
client.emit(Events.RELATIONSHIP_ADD, data.id, data.type);
|
||||
client.emit(Events.RELATIONSHIP_ADD, data.id, Relationship[data.type]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user