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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user