mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Check for valid author
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user