From c54ce1b5b011dd6da638c223821e420adc4af2c1 Mon Sep 17 00:00:00 2001 From: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:21:46 -0400 Subject: [PATCH] Update repo.py --- src/lettuce/plugins/repo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lettuce/plugins/repo.py b/src/lettuce/plugins/repo.py index 24fb718..16c0bc6 100644 --- a/src/lettuce/plugins/repo.py +++ b/src/lettuce/plugins/repo.py @@ -56,7 +56,7 @@ async def repo(self, command): ] } - await self.web_client.chat_postMessage( + await command._client.client.chat_postMessage( channel=channel_id, blocks=message_preview["blocks"], text=fallback_message ) @@ -68,4 +68,6 @@ async def handle_button_click(self, action): message = ( f"Hello, you can implement your '{clicked_button_value}' knowledge here:\n{repos_list}" ) - await action.say(message) + await action._client.client.chat_postMessage( + channel=action.payload["channel"]["id"], text=message + )