Skip to content

Invoke all event handlers; fix User JSON#33

Merged
johnkors merged 1 commit intodotnetbots:mainfrom
murdahl:dev/murdahl/Invoke-all-event-handlers;-fix-User-JSON
Mar 3, 2026
Merged

Invoke all event handlers; fix User JSON#33
johnkors merged 1 commit intodotnetbots:mainfrom
murdahl:dev/murdahl/Invoke-all-event-handlers;-fix-User-JSON

Conversation

@murdahl
Copy link
Copy Markdown
Collaborator

@murdahl murdahl commented Mar 3, 2026

https://docs.slack.dev/reference/interaction-payloads/block_actions-payload/
I never got User.User_id to work, according to docs User.id is correct

Update AppHomeOpenedEvents and MemberJoinedEvents to iterate and execute all registered handlers rather than using only the first. Add null/empty checks for handler collections, per-handler logging and error handling, and return HTTP 200 directly (AppHomeOpenedEvents) instead of calling next. MemberJoinedEvents signature was converted to a primary-constructor style and logging usage was unified. Also update Interactive.User JSON mapping from "user_id" to "id" to match the expected payload.

Update AppHomeOpenedEvents and MemberJoinedEvents to iterate and execute all registered handlers rather than using only the first. Add null/empty checks for handler collections, per-handler logging and error handling, and return HTTP 200 directly (AppHomeOpenedEvents) instead of calling next. MemberJoinedEvents signature was converted to a primary-constructor style and logging usage was unified. Also update Interactive.User JSON mapping from "user_id" to "id" to match the expected payload.
@murdahl murdahl requested a review from johnkors March 3, 2026 11:38
@murdahl murdahl self-assigned this Mar 3, 2026
@murdahl murdahl added the enhancement New feature or request label Mar 3, 2026
@johnkors johnkors merged commit 2309f2a into dotnetbots:main Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants