From 83f2070138971a87eb7114409c8f9672f5f4ad2b Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Tue, 5 May 2020 09:01:35 +0200 Subject: Use reply_count instead of replies The replies property doesn't exist anymore, it has been replaced by reply_users and reply_users_count. --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wee_slack.py b/wee_slack.py index 3cacb7e..b69c016 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2607,7 +2607,7 @@ class SlackMessage(object): ",".join(self.channel.highlights())) def number_of_replies(self): - return max(len(self.submessages), len(self.message_json.get("replies", []))) + return max(len(self.submessages), self.message_json.get("reply_count", 0)) def notify_thread(self, action=None, sender_id=None): if config.auto_open_threads: -- cgit