Fix Discord Integrations

Started by Arceus at Nov 25, 2019 at 7:48 pm
541 Views
1 Post


Arceus

codemancer

Admin

31Years Young
129 Posts

They don't think that I listen, oh but I know who they are.


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:


Check out my writing blog!