From a6ce49833c30b51a370898570c4069903e211d17 Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Pysics@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:30:43 +0530 Subject: [PATCH] Add jump_url property to Threads --- discord/threads.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/discord/threads.py b/discord/threads.py index cebb9fb4f..f6bc68f8e 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -235,6 +235,14 @@ class Thread(Messageable, Hashable): """:class:`str`: The string that allows you to mention the thread.""" 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 def members(self) -> List[ThreadMember]: """List[:class:`ThreadMember`]: A list of thread members in this thread.