aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/user.py')
-rw-r--r--discord/user.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/user.py b/discord/user.py
index a27a06c6..77f257fe 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -80,6 +80,9 @@ class User:
def __hash__(self):
return hash(self.id)
+ def __repr__(self):
+ return '<User id={0.id} name={0.name!r} discriminator={0.discriminator!r} bot={0.bot}>'.format(self)
+
@property
def avatar_url(self):
"""Returns a friendly URL version of the avatar variable the user has. An empty string if