Add PartialMessageable.__repr__

This commit is contained in:
jack1142 2022-03-20 07:58:29 +01:00 committed by GitHub
parent 7389707847
commit d55f8d38ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2151,6 +2151,9 @@ class PartialMessageable(discord.abc.Messageable, Hashable):
self.id: int = id
self.type: Optional[ChannelType] = type
def __repr__(self) -> str:
return f'<{self.__class__.__name__} id={self.id} type={self.type!r}>'
async def _get_channel(self) -> PartialMessageable:
return self