Try to cache members from data in message payloads

This commit is contained in:
Amish Shah
2018-08-08 12:45:49 +01:00
parent 5980d04f2b
commit 8152841bab

View File

@@ -163,6 +163,10 @@ class Message extends Base {
* @private
*/
this._edits = [];
if (data.member && this.guild && this.author) {
this.guild.members.add(Object.assign(data.member, { user: this.author }));
}
}
/**