Webpack build for branch 11.3-dev: 8a3ae875bb

This commit is contained in:
Travis CI 2018-06-21 19:37:52 +00:00
parent ba1a8a108e
commit 1152c30074
2 changed files with 4 additions and 4 deletions

View file

@ -6283,7 +6283,7 @@ class Message {
* The author of the message
* @type {User}
*/
this.author = this.client.dataManager.newUser(data.author);
this.author = this.client.dataManager.newUser(data.author, !data.webhook_id);
/**
* Represents the author of the message as a guild member
@ -19419,10 +19419,10 @@ class ClientDataManager {
return guild;
}
newUser(data) {
newUser(data, cache = true) {
if (this.client.users.has(data.id)) return this.client.users.get(data.id);
const user = new User(this.client, data);
this.client.users.set(user.id, user);
if (cache) this.client.users.set(user.id, user);
return user;
}

File diff suppressed because one or more lines are too long