docs: Document Message#author as nullable (#3464)

Fixes #3463
This commit is contained in:
Antonio Román
2019-09-08 09:49:10 +02:00
committed by Crawl
parent c5cbf8677e
commit d252ddf9da

View File

@@ -63,7 +63,7 @@ class Message extends Base {
/**
* The author of the message
* @type {User}
* @type {?User}
*/
this.author = data.author ? this.client.users.add(data.author, !data.webhook_id) : null;