mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Different method of upgrading user instances
This commit is contained in:
1 parent
e75c248a9a
commit
5c1b239b47
3 files changed
+13
-5
No files matched your search
@@ -403,9 +403,12 @@ class Message:
|
||||
# ourselves to a more "partial" member object.
|
||||
author = self.author
|
||||
try:
|
||||
# Update member reference
|
||||
if author.joined_at is None:
|
||||
author.joined_at = utils.parse_time(member.get('joined_at'))
|
||||
except AttributeError:
|
||||
# It's a user here
|
||||
# TODO: consider adding to cache here
|
||||
self.author = Member._from_message(message=self, data=member)
|
||||
|
||||
def _handle_mentions(self, mentions):
|
||||
|
||||
Reference in new issue
Block a user