mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add PartialMessageable.__repr__
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user