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

@@ -31,7 +31,7 @@ export default class Message extends Equality{
if(data.author instanceof User) {
this.author = data.author;
} else {
} else if(data.author) {
this.author = client.internal.users.add(new User(data.author, client));
}