diff --git a/mmpy_bot/wrappers.py b/mmpy_bot/wrappers.py index 7a66bac7..58a459ee 100644 --- a/mmpy_bot/wrappers.py +++ b/mmpy_bot/wrappers.py @@ -38,6 +38,10 @@ def channel_id(self): def channel_name(self): return self.body["data"]["channel_name"] + @cached_property + def file_ids(self): + return self.body["data"]["post"].get("file_ids", []) + @cached_property def is_direct_message(self): return self.body["data"]["channel_type"] == "D"