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 + )