int() support
This commit is contained in:
@@ -207,6 +207,9 @@ class Guild(Hashable):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def __int__(self):
|
||||
return self.id
|
||||
|
||||
def __repr__(self):
|
||||
attrs = (
|
||||
'id', 'name', 'shard_id', 'chunked'
|
||||
|
||||
Reference in New Issue
Block a user