From ad9cbeb59faf4d74ab466dbb424cd50e89a06c1d Mon Sep 17 00:00:00 2001 From: Samuel Gratzl Date: Sat, 15 Jun 2024 10:57:15 -0400 Subject: [PATCH] fix: mypy warning --- slack_cleaner2/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slack_cleaner2/model.py b/slack_cleaner2/model.py index 7e42dac..6f0c051 100644 --- a/slack_cleaner2/model.py +++ b/slack_cleaner2/model.py @@ -625,7 +625,7 @@ def _context(self) -> str: return str(self.msg) def _delete_impl(self): - return self._slack.call_rate_limited(lambda: self._slack.client.reactions_remove(name=self.name, channel=self.msg.channel.id, timestamp=self.msg.ts)) + return self._slack.call_rate_limited(lambda: self._slack.client.reactions_remove(name=self.name, channel=self.msg.channel.id, timestamp=self.msg.json["ts"])) class SlackFile: