diff options
| author | Rapptz <[email protected]> | 2021-03-25 09:11:00 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-03-25 09:11:00 -0400 |
| commit | 8657edfc996e7b3732425a7ce48bab3e00543d36 (patch) | |
| tree | deccb383a711cb43e9201a5d1e1a978588398f0a /discord/guild.py | |
| parent | Make Attachment hashable and castable to str (diff) | |
| download | discord.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.py | 2 |
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 = ( |