mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 01:53:01 +00:00
Fallback to empty string for unavailable guild __str__
This commit is contained in:
@@ -205,7 +205,7 @@ class Guild(Hashable):
|
|||||||
self._members.pop(member.id, None)
|
self._members.pop(member.id, None)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name or ''
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
attrs = (
|
attrs = (
|
||||||
|
|||||||
Reference in New Issue
Block a user