mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 07:54:36 +00:00
Fallback to empty string for unavailable guild __str__
This commit is contained in:
parent
5cb5126548
commit
8657edfc99
@ -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 = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user