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:
March 7th
2022-06-06 00:42:08 +07:00
parent 04251a8b87
commit c165824419
10 changed files with 78 additions and 51 deletions

View File

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