mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
Message#member should be a nullable. (#1205)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
1273bb42ec
commit
d870b27ece
@@ -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
|
* 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.
|
* where the author is still a member.
|
||||||
* @type {GuildMember}
|
* @type {?GuildMember}
|
||||||
*/
|
*/
|
||||||
this.member = this.guild ? this.guild.member(this.author) || null : null;
|
this.member = this.guild ? this.guild.member(this.author) || null : null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user