mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Hoist webhook detection outside of store_user helper
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user