aboutsummaryrefslogtreecommitdiff
path: root/discord/guild.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-03-25 09:11:00 -0400
committerRapptz <[email protected]>2021-03-25 09:11:00 -0400
commit8657edfc996e7b3732425a7ce48bab3e00543d36 (patch)
treedeccb383a711cb43e9201a5d1e1a978588398f0a /discord/guild.py
parentMake Attachment hashable and castable to str (diff)
downloaddiscord.py-8657edfc996e7b3732425a7ce48bab3e00543d36.tar.xz
discord.py-8657edfc996e7b3732425a7ce48bab3e00543d36.zip
Fallback to empty string for unavailable guild __str__
Diffstat (limited to 'discord/guild.py')
-rw-r--r--discord/guild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py
index 9610cdea..0df3600d 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -205,7 +205,7 @@ class Guild(Hashable):
self._members.pop(member.id, None)
def __str__(self):
- return self.name
+ return self.name or ''
def __repr__(self):
attrs = (