mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Add jump_url property to Threads
This commit is contained in:
@@ -235,6 +235,14 @@ class Thread(Messageable, Hashable):
|
|||||||
""":class:`str`: The string that allows you to mention the thread."""
|
""":class:`str`: The string that allows you to mention the thread."""
|
||||||
return f'<#{self.id}>'
|
return f'<#{self.id}>'
|
||||||
|
|
||||||
|
@property
|
||||||
|
def jump_url(self) -> str:
|
||||||
|
""":class:`str`: The string that allows you to mention the thread.
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
|
"""
|
||||||
|
return f'https://discord.com/channels/{self.guild.id}/{self.id}'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def members(self) -> List[ThreadMember]:
|
def members(self) -> List[ThreadMember]:
|
||||||
"""List[:class:`ThreadMember`]: A list of thread members in this thread.
|
"""List[:class:`ThreadMember`]: A list of thread members in this thread.
|
||||||
|
Reference in New Issue
Block a user