Discord Integration

Discord Integration [Paid] 2.13.1

No permission to buy ($35.00)
Oh is it already a feature? I've checked the templates and seen no custom modifications.

However we are on a somewhat outdated version, Discord Integration 2.6.0, my assumption now is that the we simply have an outdated version..

If we were to update from 2.6.0 to 2.9.0, will there be any underlying issues? We've upgraded a huge addon like this before and had to recreate everything, so I'm concerned whether we'd need to get users to relink their account
Oh yeah, that'll be why it's not working for you then. This specific feature/change came in the v2.7.6 update it looks like.

I don't think you'll have any issues upgradign but probably worth trying in a staging environment first, just to be safe.

Worth mentioning that there is some new functionality that requires users to re-link their accounts (so that the add-on can get more permissions) before it can be used but this process is optional and things will continue to work without the new permissions. They'll see something like this in their connected accounts area if they need to re-link:

1748338276428.webp
 
Oh yeah, that'll be why it's not working for you then. This specific feature/change came in the v2.7.6 update it looks like.

I don't think you'll have any issues upgradign but probably worth trying in a staging environment first, just to be safe.

Worth mentioning that there is some new functionality that requires users to re-link their accounts (so that the add-on can get more permissions) before it can be used but this process is optional and things will continue to work without the new permissions. They'll see something like this in their connected accounts area if they need to re-link:

View attachment 323142
Great, thank you very much!
 
Can anyone have a demo or having this working on their site?
Our site is locked down, but we have been using this addon for years. The best feature we have found with it, is the thread to discord auto poster which keeps users on Discord engaged and visiting the forum as well. Especially for those larger discussions that are better handled through a forum thread.

Example:

Thread posted
1748983801343.webp

Which spits out on Discord:
1748983841658.webp
 
Naz updated Discord Integration with a new update entry:

Version 2.10.1

  • Fix an issue where trying to disassociate a Discord account from a user would fail.
  • Fix 'falsy' values for a promotion message when promoting a thread to Discord did not work.
  • Fix unexpected HTML escaping of Discord notifications for threads.
  • Fix conversation Discord notices used the same phrase for create/invite/reply actions.

Read the rest of this update entry...
 
Getting this error when users are trying to log in
Code:
OAuth\Common\Storage\Exception\TokenNotFoundException: Connected account request error (nfDiscord): Cannot find token for Discord inside \XF\Session\Session src/XF/ConnectedAccount/Storage/Session.php:36
Generated by: Krul Oct 30, 2025 at 1:45 AM

Code:
[HEADING=2]Stack trace[/HEADING]
#0 src/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(141): XF\ConnectedAccount\Storage\Session->retrieveAccessToken('Discord')
#1 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(101): OAuth\OAuth2\Service\AbstractService->request('users/@me', 'GET')
#2 src/addons/NF/Discord/ConnectedAccount/ProviderData/Discord.php(25): XF\ConnectedAccount\ProviderData\AbstractProviderData->requestFromEndpoint('username')
#3 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(180): NF\Discord\ConnectedAccount\ProviderData\Discord->getUsername()
#4 internal_data/code_cache/templates/l1/s1/public/connected_account_associated_nfDiscord.php(31): XF\ConnectedAccount\ProviderData\AbstractProviderData->offsetGet('username')
#5 src/XF/Template/Templater.php(1799): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 src/addons/NF/Discord/ConnectedAccount/Provider/Discord.php(230): XF\Template\Templater->renderTemplate('connected_accou...', Array)
#7 src/XF/Entity/ConnectedAccountProvider.php(100): NF\Discord\ConnectedAccount\Provider\Discord->renderAssociated(Object(XF\Entity\ConnectedAccountProvider), Object(SV\SearchImprovements\XF\Entity\User))
#8 src/XF/Template/Templater.php(1282): XF\Entity\ConnectedAccountProvider->renderAssociated()
#9 internal_data/code_cache/templates/l1/s1/public/connected_account_macros.php(40): XF\Template\Templater->method(Object(XF\Entity\ConnectedAccountProvider), 'renderAssociate...', Array)
#10 src/XF/Template/Templater.php(921): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#11 internal_data/code_cache/templates/l1/s1/public/account_connected.php(28): XF\Template\Templater->callMacro('connected_accou...', 'disassociate', Array, Array)
#12 src/XF/Template/Templater.php(1799): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#13 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_connect...', Array)
#14 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#15 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('XF:Account\\Conn...', 'public:account_...', Array)
#16 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#19 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#20 src/XF.php(806): XF\App->run()
#21 index.php(23): XF::runApp('XF\\Pub\\App')
#22 {main}

Code:
Request state
array(4) {
  ["url"] => string(44) "/forum/index.php?account/connected-accounts/"
  ["referrer"] => string(62) "https://uorenn.com/forum/index.php?account/connected-accounts/"
  ["_GET"] => array(1) {
    ["account/connected-accounts/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Tried purchasing but every time I try and register, no error message - just wipes the fields and returns back to the register?
 
The default bot configuration uses admin privileges to manage syncing of channel permissions which is probably what triggers this. This really only matters if your server has more than 10000 users.
 
The default bot configuration uses admin privileges to manage syncing of channel permissions which is probably what triggers this.
I don't think that's triggering it? The only Privileged Intent the app is claiming is the Message Content Privileged Intent, which doesn't seem to touch on channel permissions.

Channel permissions if anything should've fallen under the Guild Members Privileged Intent, but seeing as it doesn't have that one now and things work fine I guess that wasn't necessary.

This really only matters if your server has more than 10000 users.
Yeah, our server has a lot more than that.
 
We're experiencing something similar - I believe it's also based on connected apps count right? (we've got 2 servers and bots, both with over 100k but only one is affected)

I'm assuming that even if we disable the intents, it won't cause any other issues to the bot? Just the syncing of channel permissions?
 
How will Discord's Changes to Privileged Intent Access for Discord Apps impact this addon? Got the email today saying the app for our forum that we set up for this bot used the Message Content Privileged Intent, but I'm not clear on how (if at all) that is actually being used here.

We're experiencing something similar - I believe it's also based on connected apps count right? (we've got 2 servers and bots, both with over 100k but only one is affected)

I'm assuming that even if we disable the intents, it won't cause any other issues to the bot? Just the syncing of channel permissions?
My understanding is that the add-on is not affected, as it does not use endpoints that require those intents.
 
Hi Naz - this is an amazing addon, thank you!

I've followed all the steps to connect Discord to my forum, and all statuses are now green as they should be. However, users cannot connect their Discord accounts to their forum accounts since we get an "Invalid OAuth2 redirect_uri" error. Do you know how we can resolve this? Thank you!
 
Back
Top Bottom