mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Add PartialMessageable.__repr__
This commit is contained in:
parent
7389707847
commit
d55f8d38ad
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user