Add int() support to Hashable, making it available across the board for AuditLogEntry, *Channel, Guild, Object, Message, ...

This commit is contained in:
Arthur Jovart
2021-08-29 01:21:20 +02:00
parent 22de755059
commit 64ee792391
13 changed files with 79 additions and 5 deletions

View File

@@ -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),