From b458cc7b7d1e5608e1cb428e5f71b5f6e69795b3 Mon Sep 17 00:00:00 2001 From: Merlintor Date: Thu, 5 Dec 2019 17:59:42 +0100 Subject: [PATCH] Return 'username' instead of 'name' --- discord/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/user.py b/discord/user.py index 5c5a9de54..f65b8d266 100644 --- a/discord/user.py +++ b/discord/user.py @@ -114,7 +114,7 @@ class BaseUser(_BaseUser): def _to_minimal_user_json(self): return { - 'name': self.name, + 'username': self.name, 'id': self.id, 'avatar': self.avatar, 'discriminator': self.discriminator,