mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +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.id: int = id
|
||||||
self.type: Optional[ChannelType] = type
|
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:
|
async def _get_channel(self) -> PartialMessageable:
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user