Hi,
I've just purchased and installed the Discord addon.
EDIT: Nevermind, this seems to have resolved itself once I gave the bot Admin rights.
EDIT2: This seems to have resolved itself once I disabled your TeamSpeak addon. The data writer for each must be interfering with each other?
EDIT 3:
EDIT4: This seems to have resolved itself after a bit of time. It must have timed out and allowed the socket to be used again - purely speculating. I am still not able to authenticate my account. My Redirect URI is set to "https://unrealaussies.com/discord.php". When I click Associate with Discord it comes up with the correct window, asking for permissions etc. The URL I get is:
https://discordapp.com/oauth2/authorize?scope=identify email guilds&redirect_uri=https://unrealaussies.com//discord.php&response_type=code&client_id=<clientid>&state=28ff64ce
I noticed the double slash after the domain name, not sure if that has anything to do with it? I hit Authorize and it comes up with this URL:
https://discordapp.com/oauth2/error...tion=Mismatching+redirect+URI.&state=28ff64ce
And I'm presented with this screen

I tried removing a slash from the authorisation page URL: it does redirect back to my forum but I get this error:
"An error occurred while retrieving your authorization token."
Any help would be appreciated, thanks
I've just purchased and installed the Discord addon.
I'm getting all green ticks on the Test Discord Integration page and the bot says Hi in chat.
I'm currently on XenForo 1.5.12 and PHP Version 5.6.23.
I'm getting two issues at the moment however:
List All Roles page:
I'm not getting anything on this page besides the following error:
Server Error
Cannot use a scalar value as an array
This displays the XenForo user groups fine, but clicking on a group produces this error:

I'm currently on XenForo 1.5.12 and PHP Version 5.6.23.
I'm getting two issues at the moment however:
List All Roles page:
I'm not getting anything on this page besides the following error:
Server Error
Cannot use a scalar value as an array
- XenForo_Application::handlePhpError() in NixFifty/Discord/ControllerAdmin/Discord.php at line 322
- NixFifty_Discord_ControllerAdmin_Discord->actionRoles() in XenForo/FrontController.php at line 351
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
- XenForo_FrontController->run() in <webroot>/admin.php at line 13
This displays the XenForo user groups fine, but clicking on a group produces this error:

I do however get this error when trying to assign a role to a user group though:
Declaration of NixFifty_TeamSpeak_DataWriter_UserGroup::_verifyServerGroupIds() should be compatible with NixFifty_Discord_DataWriter_UserGroup::_verifyServerGroupIds(&$value, XenForo_DataWriter $obj)
Declaration of NixFifty_TeamSpeak_DataWriter_UserGroup::_verifyServerGroupIds() should be compatible with NixFifty_Discord_DataWriter_UserGroup::_verifyServerGroupIds(&$value, XenForo_DataWriter $obj)
- XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
- XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
- XenForo_Autoloader->autoload() in XenForo/Application.php at line 1052
- XenForo_Application::autoload() in XenForo/Application.php at line 529
- XenForo_Application::resolveDynamicClass() in XenForo/DataWriter.php at line 2052
- XenForo_DataWriter::create() in NixFifty/Discord/ControllerAdmin/Discord.php at line 490
- NixFifty_Discord_ControllerAdmin_Discord->actionGroupsUserSave() in XenForo/FrontController.php at line 351
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
- XenForo_FrontController->run() in <webroot>/admin.php at line 13
EDIT 3:
Issue 3: I've created a new application since it was refusing to authenticate on the original one I created when I put the callback in (same issue as from @KnoxVegas here). It now connects to the new App but won't Initiate Websocket. The button doesn't seem to do anything. I've given the bot admin rights in the server though it says offline (since no websocket is connected). Any idea? I've tried reinstalling the addon and restarting apache.


https://discordapp.com/oauth2/authorize?scope=identify email guilds&redirect_uri=https://unrealaussies.com//discord.php&response_type=code&client_id=<clientid>&state=28ff64ce
I noticed the double slash after the domain name, not sure if that has anything to do with it? I hit Authorize and it comes up with this URL:
https://discordapp.com/oauth2/error...tion=Mismatching+redirect+URI.&state=28ff64ce
And I'm presented with this screen

I tried removing a slash from the authorisation page URL: it does redirect back to my forum but I get this error:
"An error occurred while retrieving your authorization token."
Any help would be appreciated, thanks

Last edited: