Skip to content

Commit

Permalink
Update repo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Jun 14, 2024
1 parent 1c5a4ac commit c54ce1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lettuce/plugins/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -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
)

0 comments on commit c54ce1b

Please sign in to comment.