aboutsummaryrefslogtreecommitdiff
path: root/discord/threads.py
diff options
context:
space:
mode:
authorLilly Rose Berner <[email protected]>2021-06-09 14:21:14 +0200
committerGitHub <[email protected]>2021-06-09 08:21:14 -0400
commit2eb0ec07ab9857c5937fb22597fd20f5cba05b06 (patch)
treedba8d9970848fcd99a695a16eeb4d9467653a024 /discord/threads.py
parentAdd audit log entries for stage instances (diff)
downloaddiscord.py-2eb0ec07ab9857c5937fb22597fd20f5cba05b06.tar.xz
discord.py-2eb0ec07ab9857c5937fb22597fd20f5cba05b06.zip
Add __str__ method to Thread
Diffstat (limited to 'discord/threads.py')
-rw-r--r--discord/threads.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/threads.py b/discord/threads.py
index 104f0ef9..b239006c 100644
--- a/discord/threads.py
+++ b/discord/threads.py
@@ -154,6 +154,9 @@ class Thread(Messageable, Hashable):
f' owner_id={self.owner_id!r} locked={self.locked} archived={self.archived}>'
)
+ def __str__(self) -> str:
+ return self.name
+
def _from_data(self, data: ThreadPayload):
self.id = int(data['id'])
self.parent_id = int(data['parent_id'])