mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 00:02:52 +00:00
Try to cache members from data in message payloads
This commit is contained in:
parent
5980d04f2b
commit
8152841bab
1 changed files with 4 additions and 0 deletions
|
|
@ -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 }));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue