fix: error
- Documents - Enums - Checkupdate function - Update UserAgent
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const { Events, Relationship } = require('../../../util/Constants');
|
||||
const { Events, RelationshipTypes } = 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 {RelationshipType} type The new relationship type
|
||||
* @param {RelationshipTypes} type The new relationship type
|
||||
*/
|
||||
client.emit(Events.RELATIONSHIP_ADD, data.id, Relationship[data.type]);
|
||||
client.emit(Events.RELATIONSHIP_ADD, data.id, RelationshipTypes[data.type]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user