Hoist webhook detection outside of store_user helper

This commit is contained in:
Rapptz
2023-06-11 12:21:37 -04:00
parent 94bf7d8644
commit f1bade4bda
4 changed files with 8 additions and 9 deletions

View File

@ -1808,7 +1808,7 @@ class Message(PartialMessage, Hashable):
self.nonce = value
def _handle_author(self, author: UserPayload) -> None:
self.author = self._state.store_user(author)
self.author = self._state.store_user(author, cache=self.webhook_id is None)
if isinstance(self.guild, Guild):
found = self.guild.get_member(self.author.id)
if found is not None: