aboutsummaryrefslogtreecommitdiff
path: root/discord/widget.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/widget.py')
-rw-r--r--discord/widget.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/widget.py b/discord/widget.py
index 93a46be7..c09bfa98 100644
--- a/discord/widget.py
+++ b/discord/widget.py
@@ -157,6 +157,12 @@ class WidgetMember(BaseUser):
self.connected_channel = connected_channel
+ def __repr__(self):
+ return (
+ f"<WidgetMember name={self.name!r} discriminator={self.discriminator!r}"
+ f" bot={self.bot} nick={self.nick!r}>"
+ )
+
@property
def display_name(self):
""":class:`str`: Returns the member's display name."""