diff options
| author | Rapptz <[email protected]> | 2019-07-10 01:23:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-07-10 01:23:38 -0400 |
| commit | 5c1b239b47755c1affaf25195acceec883c61963 (patch) | |
| tree | 4cec558b488694572dbf93d2849cee459dddc8e2 /discord/member.py | |
| parent | Properly populate __slots__ for derived user types. (diff) | |
| download | discord.py-5c1b239b47755c1affaf25195acceec883c61963.tar.xz discord.py-5c1b239b47755c1affaf25195acceec883c61963.zip | |
Different method of upgrading user instances
Diffstat (limited to 'discord/member.py')
| -rw-r--r-- | discord/member.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/discord/member.py b/discord/member.py index 266e15dd..d7871066 100644 --- a/discord/member.py +++ b/discord/member.py @@ -189,11 +189,7 @@ class Member(discord.abc.Messageable, _BaseUser): @classmethod def _from_message(cls, *, message, data): author = message.author - data['user'] = { - attr: getattr(author, attr) - for attr in author.__slots__ - if attr[0] != '_' - } + data['user'] = author._to_minimal_user_json() return cls(data=data, guild=message.guild, state=message._state) @classmethod |