diff options
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/threads.py | 3 |
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']) |