aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-01 20:50:56 -0400
committerRapptz <[email protected]>2021-07-01 20:51:56 -0400
commit69c400d81338bf3df54b78f3a50ac1ec5d6c9729 (patch)
tree990588c80b401d3a41589939382b57ca1459d4be
parentAdd a default style for buttons (diff)
downloaddiscord.py-69c400d81338bf3df54b78f3a50ac1ec5d6c9729.tar.xz
discord.py-69c400d81338bf3df54b78f3a50ac1ec5d6c9729.zip
Add Thread.mention
-rw-r--r--discord/threads.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/threads.py b/discord/threads.py
index f9120d44..d3fa453c 100644
--- a/discord/threads.py
+++ b/discord/threads.py
@@ -207,6 +207,11 @@ class Thread(Messageable, Hashable):
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.