int() support

This commit is contained in:
iDutchy committed 2020-10-17 19:14:51 -05:00
1 parent 24839be99d
commit 09168d880f
8 files changed
+25 -1

No files matched your search

+3
View File
@@ -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'