So, I was playing around with webhooks, thinking I had finally found a way to link Sonarr’s updates to my little group’s main chat system, without having an awkward push notification system.
But I’m not sure if they’re working too well.
First off, Discord uses JSON, so the PUT feature is out the window. The post however, gives a 400 error, as follows:
Invalid request Validation failed: -- Unable to post to webhook: REST request failed: [400] [POST] at [https://discordapp.com/api/webhooks/...]
I’m not privy to the webhook structure or how you’re sending this stuff out, so unfortunately there wasn’t too much for me to do, /but/, while digging through the forums I did find a thread about the webhooks and slack (similar to Discord), that was using a mediator to better configure the hook. The new URL then became:
https://projectfive.nl/inc/slackpush.php?slack=https://discordapp.com/api/webhooks/...&type=sonarr
And I was ecstatic, as Sonarr was reporting a successful test! However, it seemed to be a bit too early to celebrate, as despite the success, the messages are not making it to Discord.
So! Rambling aside, I was wondering how much work it would be to either A) expand the webhooks to properly interface with whatever it is Discord is doing, or B) add some direct connection service/profile to Discord, either directly or perhaps something a bot could utilize. Cheers, and as always, thanks for the amazing work you guys have done.