mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53: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
|
* @private
|
||||||
*/
|
*/
|
||||||
this._edits = [];
|
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