Add int() support to Hashable, making it available across the board for AuditLogEntry, *Channel, Guild, Object, Message, ...
This commit is contained in:
@@ -339,9 +339,6 @@ class Guild(Hashable):
|
||||
def __str__(self) -> str:
|
||||
return self.name or ''
|
||||
|
||||
def __int__(self) -> int:
|
||||
return self.id
|
||||
|
||||
def __repr__(self) -> str:
|
||||
attrs = (
|
||||
('id', self.id),
|
||||
|
||||
Reference in New Issue
Block a user