Check for valid author

This commit is contained in:
abalabahaha
2016-06-01 13:11:04 -07:00
parent 883743e137
commit cf413bd472
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ var Message = (function (_Equality) {
if (data.author instanceof _User2["default"]) {
this.author = data.author;
} else {
} else if (data.author) {
this.author = client.internal.users.add(new _User2["default"](data.author, client));
}