Add Thread.mention

This commit is contained in:
Rapptz 2021-07-01 20:50:56 -04:00
parent 9ac459b5d3
commit 69c400d813

View File

@ -206,6 +206,11 @@ class Thread(Messageable, Hashable):
"""Optional[:class:`Member`]: The member this thread belongs to."""
return self.guild.get_member(self.owner_id)
@property
def mention(self) -> str:
""":class:`str`: The string that allows you to mention the thread."""
return f'<#{self.id}>'
@property
def last_message(self) -> Optional[Message]:
"""Fetches the last message from this channel in cache.