diff --git a/src/structures/Message.js b/src/structures/Message.js index 8fb9688fa..69c38a0ad 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -54,13 +54,6 @@ class Message extends Base { */ this.author = this.client.users.add(data.author, !data.webhook_id); - /** - * 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} - */ - this.member = this.guild ? this.guild.member(this.author) || null : null; - /** * Whether or not this message is pinned * @type {boolean} @@ -201,6 +194,15 @@ class Message extends Base { ); } + /** + * 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} + */ + get member() { + return this.guild ? this.guild.member(this.author) || null : null; + } + /** * The time the message was sent at * @type {Date}