aboutsummaryrefslogtreecommitdiff
path: root/discord/widget.py
diff options
context:
space:
mode:
authorSteve C <[email protected]>2021-04-17 18:56:08 -0400
committerGitHub <[email protected]>2021-04-17 18:56:08 -0400
commit86f10f6dd6cb02d5feab828e37f657a60b1f7773 (patch)
tree8532240c4a8e40204238b5c9f04334b4a8898c2f /discord/widget.py
parentAdd VoiceChannel.video_quality_mode (diff)
downloaddiscord.py-86f10f6dd6cb02d5feab828e37f657a60b1f7773.tar.xz
discord.py-86f10f6dd6cb02d5feab828e37f657a60b1f7773.zip
Add missing reprs to some objects
These are WidgetMember, BaseUser, and DeletedReferencedMessage
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."""