diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-09-01 22:46:14 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 30eea6bb1f4278b79583e8130aef5e404411a31b (patch) | |
tree | 57eadb1ccf0c9b5a3bccd7ddf84403293237cce6 /slack/slack_message.py | |
parent | c14ed0a9eb18e7e073b37948a4e1286109af1e36 (diff) | |
download | wee-slack-30eea6bb1f4278b79583e8130aef5e404411a31b.tar.gz |
Create a readonly messages property instead of get_message
Diffstat (limited to 'slack/slack_message.py')
-rw-r--r-- | slack/slack_message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py index 0a1870b..032df91 100644 --- a/slack/slack_message.py +++ b/slack/slack_message.py @@ -142,7 +142,7 @@ class SlackMessage: def parent_message(self) -> Optional[SlackMessage]: if not self.is_reply or self.thread_ts is None: return None - return self.conversation.get_message(self.thread_ts) + return self.conversation.messages[self.thread_ts] @property def is_bot_message(self) -> bool: |