Browse Source

Fix NameError in member upgrade code

pull/2266/head
Rapptz 6 years ago
parent
commit
91f1f430e1
  1. 2
      discord/member.py

2
discord/member.py

@ -198,7 +198,7 @@ class Member(discord.abc.Messageable, _BaseUser):
try: try:
member_data = data.pop('member') member_data = data.pop('member')
except KeyError: except KeyError:
return state.store_user(member_data) return state.store_user(data)
else: else:
member_data['user'] = data member_data['user'] = data
return cls(data=member_data, guild=guild, state=state) return cls(data=member_data, guild=guild, state=state)

Loading…
Cancel
Save