mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Add jump_url property to Threads
This commit is contained in:
parent
242d3f7ab7
commit
a6ce49833c
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user