Fix Discord Integrations

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

Arceus

codemancer
0
30Years Young
45 Posts

Like a heartbeat, drives you mad, in the stillness of remembering what you had, and what you lost.


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: