Alright, I managed to get this working.
@manelizzard are you able to slightly rewrite the way the information is posted to Slack? Currently, it posts thread's number like this:
Started discussion [discussion ID] ( [discussion title] )
It will be more user-friendly if is:
Just posted: *[discussion title]*. Reply now
(where "reply now" is an URL to the flarum thread)