I dug into the code and I found that’s not as easy as it should to add new webhooks.
- Webhooks are part of a group of webhooks (I guess it’s for the admin and/or to namespace events)
- For the Solved plugin, there are 2 webhooks:
solved_accepted_solutionandsolved_unaccepted_solution, in thesolvedgroup
Where it goes wrong is:
- the
solvedgroup is hardcoded in theWebHookEventTypemodel of Discourse - the two events are also hardcoded in the
WebHookEventTypemodel of Discourse
I’ll see if and how I can manage to still declare new events without to have to touch to the Discourse code…