From 91f1f430e1f6f8c8118fea8b642277a0ad4de97a Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 10 Jul 2019 06:11:03 -0400 Subject: [PATCH] Fix NameError in member upgrade code --- discord/member.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/member.py b/discord/member.py index bd65b2374..ed6b3944c 100644 --- a/discord/member.py +++ b/discord/member.py @@ -198,7 +198,7 @@ class Member(discord.abc.Messageable, _BaseUser): try: member_data = data.pop('member') except KeyError: - return state.store_user(member_data) + return state.store_user(data) else: member_data['user'] = data return cls(data=member_data, guild=guild, state=state)