aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_message.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-01 22:46:14 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit30eea6bb1f4278b79583e8130aef5e404411a31b (patch)
tree57eadb1ccf0c9b5a3bccd7ddf84403293237cce6 /slack/slack_message.py
parentc14ed0a9eb18e7e073b37948a4e1286109af1e36 (diff)
downloadwee-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.py2
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: