From 69c400d81338bf3df54b78f3a50ac1ec5d6c9729 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 1 Jul 2021 20:50:56 -0400 Subject: [PATCH] Add Thread.mention --- discord/threads.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/threads.py b/discord/threads.py index f9120d444..d3fa453c6 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -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.