mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: do not cache webhook users (#2611)
Goal in mind is to not save the name and avatar used by webhooks because those can change between messages without any other update.
This commit is contained in:
@@ -55,7 +55,7 @@ class Message {
|
||||
* The author of the message
|
||||
* @type {User}
|
||||
*/
|
||||
this.author = this.client.dataManager.newUser(data.author);
|
||||
this.author = this.client.dataManager.newUser(data.author, !data.webhook_id);
|
||||
|
||||
/**
|
||||
* Represents the author of the message as a guild member
|
||||
|
||||
Reference in New Issue
Block a user