Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds support for properly handling block_suggestion events #156

Closed
wants to merge 1 commit into from

Conversation

0xArch3r
Copy link

Create a block_suggestion handling workflow that mimics the current InteractionHandler workflows. Add suggestionHandlers slice to slaccker struct. Adds SuggestionHandler and SuggetionHandlerMiddleware functions. Adds logic in the main slacker.Listen func to switch between generic Interactions and block_suggestion interaction types

Create a block_suggestion handling workflow that mimics the current InteractionHandler
workflows. Add suggestionHandlers slice to slaccker struct. Adds SuggestionHandler and
SuggetionHandlerMiddleware functions. Adds logic in the main slacker.Listen func to
switch between generic Interactions and block_suggestion interaction types
@0xArch3r
Copy link
Author

@shomali11 I pass the socketmode.Request to the "private" handler, the only thing the user has to do is register a SuggestionHandler that returns a slack.OptionsResponse struct. Then we will .Ack() the Request on our end instead of requiring the user to do it.

@arusso
Copy link
Collaborator

arusso commented Nov 7, 2023

I think this conflicts with #154, can you fix and re-push?

cc: @raed-shomali

@raed-shomali
Copy link
Contributor

Thanks @arusso. @0xArch3r and I spoke and he will try to create a new PR that attempts to take care of this without the developer having to manually calling the Ack.

@arusso arusso closed this Nov 7, 2023
@0xArch3r
Copy link
Author

0xArch3r commented Nov 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants