Message#member should be a nullable. (#1205)

This commit is contained in:
Kelvin Wu 2017-02-21 13:49:20 -05:00 committed by Schuyler Cebulskie
parent 1273bb42ec
commit d870b27ece

View file

@ -56,7 +56,7 @@ class Message {
/**
* Represents the author of the message as a guild member. Only available if the message comes from a guild
* where the author is still a member.
* @type {GuildMember}
* @type {?GuildMember}
*/
this.member = this.guild ? this.guild.member(this.author) || null : null;