Fix Discord IntegrationsStarted by Arceus at Nov 25, 2019 7:48 pm
When it's just us, you show me what it feels like to be lonely; you show me what it feels like to be lost; I take your hand for you to let it go;
So recently the Discord integrations from Gaia broke. This does mean that unfortunately until Salerno comes out, it's inherently broken in Athens, and I don't really have the time to release a hotfix.
You can quickly fix it yourself, though.
Get into application/core and open nyx.php
You're looking for all the functions prefixed with discord_
CURLOPT_HTTPHEADER => [ "Length" => strlen($msgObject), "Content-Type" => "application/json" ]
Look for this.
Change it to this.
CURLOPT_HTTPHEADER => ["Content-Type: application/json"]
There are several places where this appears, all of the Discord functions use it, and yes you'll have to change every single one. (This will change in Salerno! lol)
Your integrations should be working again. c: