Discord Integration

Discord Integration [Paid] 2.7.8

No permission to buy ($35.00)

NixFifty

XenForo developer
Staff member
I am asked because when try to update this Version then this show Rebuild Action, not upgrade.
Because it’s the same version, I just updated the resource listing here. If you’re already on 2.2.8, you don’t need to apply it.
 

Nirjonadda

Well-known member
I had not updated the resource manager with the latest version details so that’s what this is.

Then getting lot of Server error log.

Code:
GuzzleHttp\Exception\ServerException: Server error: `POST https://discordapp.com/api/channels/519513633495973891/messages` resulted in a `500 INTERNAL SERVER ERROR` response: {"message": "500: Internal Server Error", "code": 0} src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113

Generated by: simon Dec 8, 2019 at 11:57 PM

Stack trace

#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 src/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Promise\Promise->wait()
#10 src/addons/NF/Discord/Api.php(704): GuzzleHttp\Client->request('POST', 'https://discord...', Array)
#11 src/addons/NF/Discord/Api.php(491): NF\Discord\Api->request(Array, 'channels/519513...', Array)
#12 src/addons/NF/Discord/XF/Entity/UserAlert.php(35): NF\Discord\Api->createMessage('519513633495973...', '', Array)
#13 src/XF.php(291): NF\Discord\XF\Entity\UserAlert->NF\Discord\XF\Entity\{closure}()
#14 src/XF/Mvc/Dispatcher.php(156): XF::triggerRunOnce(true)
#15 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#17 src/XF.php(391): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}

Request state

array(4) {
  ["url"] => string(34) "/posts/1074358/react?reaction_id=1"
  ["referrer"] => string(43) "/threads/67650/page-2"
  ["_GET"] => array(1) {
    ["reaction_id"] => string(1) "1"
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(21) "/threads/67650/page-2"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 

Xantam

Member
Oops, missed these - sorry. I don't have any plans at the moment for it but feel free to start a conversation with me if you're willing to help fund it.
I already paid for your plugin and I can almost guarantee your customers want this too. I'll buy another add-on and won't renew with you.

Thanks for your time!
 

Xyphien

Active member
The bot keeps disconnecting after a while. Then it stays offline until I go back to the settings and click test connection again. Why is that?
 

NixFifty

XenForo developer
Staff member
The bot keeps disconnecting after a while. Then it stays offline until I go back to the settings and click test connection again. Why is that?
It doesn’t disconnect, it just goes offline after it has finished whatever it’s doing.

If you want it to stay online all the time, you’ll have to run the bundled script on your server.
 

sub_ubi

Well-known member
I love the ability to control notifications for each resource category, thank you!

wishlist:
  • new conversation message -> discord (private message)
  • new forum post -> discord channel
  • resource update -> discord channel
Happy to fund these features, let me know.
 

Benality

Member
Probably stupid question.. But is this a two way sync? I don't want to manage Discord Roles with the website. I want to manage Website groups with Discord. If that makes any sense.
 

Straydog

Active member
Is there an installed version I can view anywhere? I can't stand Discrap to be truthful but many of my users prefer it over Teamspeak. So, I am alright paying for an addon that works I suppose but as I have previously said here in these forums; Xenforo does not vet creators nor do they support license holders when there is an issue. Not saying this item is an issue just that I want to see it in operation and hear some current users opinions.
 

NixFifty

XenForo developer
Staff member
Is there any commands for the bot in the discord to ban or do anything with the bot on the website from a command
It’s possible though there isn’t anything yet. What kind of actions are you wanting the bot to be able to do?
Probably stupid question.. But is this a two way sync? I don't want to manage Discord Roles with the website. I want to manage Website groups with Discord. If that makes any sense.
Do you mean assigning Discord roles grants user groups on the forum? It’s planned for a future update and I’m currently testing it out on a board but isn’t available for public consumption just yet.
Is there an installed version I can view anywhere? I can't stand Discrap to be truthful but many of my users prefer it over Teamspeak. So, I am alright paying for an addon that works I suppose but as I have previously said here in these forums; Xenforo does not vet creators nor do they support license holders when there is an issue. Not saying this item is an issue just that I want to see it in operation and hear some current users opinions.
There isn’t an official demo but I’ll set one up and let you know.
 

Vanjoe

Member
Do presence intent and server members intent need to be turned on when creating the bot?

What features require WebSocket? Requiring WebSocket should have been mentioned in the addon page, as some on shared hosting can't run it.
 
Last edited:

NixFifty

XenForo developer
Staff member
Do presence intent and server members intent need to be turned on when creating the bot?
Neither of these need to be turned on.
What features require WebSocket? Requiring WebSocket should have been mentioned in the addon page, as some on shared hosting can't run it.
Discord requires new bot applications to make a WebSocket request before they’re allowed to post messages in channels. As a result, there is a tool on the integration test page that runs a small bit of JavaScript (in your browser) to trigger a WebSocket request to Discord. This only needs to be done once and having shared hosting makes no difference to it since it runs in your browser.
 
Top