mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Try to cache members from data in message payloads
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user