Jump to content

Discord Integration


Ahmad E.

Recommended Posts

On 2.2.2018 at 2:09 AM, RDxZen said:

@Ahmad E. Would it be possible for you to lower the price of this application, I was testing the open source version when you offered that, and before I was able to get the application for $30 you raised it to $60. 

There are no plans for changing the price, I'm afraid.

17 hours ago, Mastric said:

I've only had one issue with your add-on and I'm hoping the redesign addresses it. Maybe some method of caching user's information would work.


array (
  'global' => false,
  'message' => 'You are being rate limited.',
  'retry_after' => 5970,
)

 

I don't think there is much data to cache as the add-on does not read alot. It "writes" a lot more, sending messages, updating roles etc.

I'll think of something else though, probably some sort of queue.

Link to comment
Share on other sites

When I access my account settings with my discord linked the following error appears:

IPS\discord\Api\Exception\ForbiddenException:  (0)
#0 /usr/www/frostyttt/public/home/forum/applications/discord/sources/Api/AbstractResponse.php(64): IPS\discord\Api\_AbstractResponse->throwException(403)
#1 /usr/www/frostyttt/public/home/forum/applications/discord/sources/Api/GuildMember.php(57): IPS\discord\Api\_AbstractResponse->handleApi()
#2 /usr/www/frostyttt/public/home/forum/applications/core/sources/ProfileSync/Discord.php(63): IPS\discord\Api\_GuildMember->update(Object(IPS\Member))
#3 /usr/www/frostyttt/public/home/forum/applications/core/sources/ProfileSync/Discord.php(128): IPS\core\ProfileSync\_Discord->user()
#4 /usr/www/frostyttt/public/home/forum/system/Theme/Theme.php(824) : eval()'d code(7639): IPS\core\ProfileSync\_Discord->name()
#5 /usr/www/frostyttt/public/home/forum/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_system->settingsOverview(Array, NULL)
#6 /usr/www/frostyttt/public/home/forum/applications/core/modules/front/system/settings.php(160): IPS\Theme\_SandboxedTemplate->__call('settingsOvervie...', Array)
#7 [internal function]: IPS\core\modules\front\system\_settings->_overview()
#8 /usr/www/frostyttt/public/home/forum/applications/core/modules/front/system/settings.php(54): call_user_func(Array)
#9 /usr/www/frostyttt/public/home/forum/system/Dispatcher/Controller.php(96): IPS\core\modules\front\system\_settings->manage()
#10 /usr/www/frostyttt/public/home/forum/applications/core/modules/front/system/settings.php(34): IPS\Dispatcher\_Controller->execute()
#11 /usr/www/frostyttt/public/home/forum/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\front\system\_settings->execute()
#12 /usr/www/frostyttt/public/home/forum/index.php(12): IPS\_Dispatcher->run()
#13 {main}

https://gyazo.com/f1036468ba31ad2f60feb5d84af1fa92

Link to comment
Share on other sites

On 12.2.2018 at 1:47 AM, thebronxbomber said:

HI there,

I'm trying to specify a channel for the discord notifications to go through....and this is what I get (attached): 

 

 

This is the case whether for forum settings or calendar settings. Any idea on what the problem is and/or how to fix it? Any help is appreciated. Thank you.

 

Regards,

Ryan

 

 

discordintprob.png

I'm not sure what could cause this. Do you mind sendong me ACP/FTP details?

23 hours ago, Justinh4x said:

When I access my account settings with my discord linked the following error appears:

IPS\discord\Api\Exception\ForbiddenException:  (0)
#0 /usr/www/frostyttt/public/home/forum/applications/discord/sources/Api/AbstractResponse.php(64): IPS\discord\Api\_AbstractResponse->throwException(403)
#1 /usr/www/frostyttt/public/home/forum/applications/discord/sources/Api/GuildMember.php(57): IPS\discord\Api\_AbstractResponse->handleApi()
#2 /usr/www/frostyttt/public/home/forum/applications/core/sources/ProfileSync/Discord.php(63): IPS\discord\Api\_GuildMember->update(Object(IPS\Member))
#3 /usr/www/frostyttt/public/home/forum/applications/core/sources/ProfileSync/Discord.php(128): IPS\core\ProfileSync\_Discord->user()
#4 /usr/www/frostyttt/public/home/forum/system/Theme/Theme.php(824) : eval()'d code(7639): IPS\core\ProfileSync\_Discord->name()
#5 /usr/www/frostyttt/public/home/forum/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_system->settingsOverview(Array, NULL)
#6 /usr/www/frostyttt/public/home/forum/applications/core/modules/front/system/settings.php(160): IPS\Theme\_SandboxedTemplate->__call('settingsOvervie...', Array)
#7 [internal function]: IPS\core\modules\front\system\_settings->_overview()
#8 /usr/www/frostyttt/public/home/forum/applications/core/modules/front/system/settings.php(54): call_user_func(Array)
#9 /usr/www/frostyttt/public/home/forum/system/Dispatcher/Controller.php(96): IPS\core\modules\front\system\_settings->manage()
#10 /usr/www/frostyttt/public/home/forum/applications/core/modules/front/system/settings.php(34): IPS\Dispatcher\_Controller->execute()
#11 /usr/www/frostyttt/public/home/forum/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\front\system\_settings->execute()
#12 /usr/www/frostyttt/public/home/forum/index.php(12): IPS\_Dispatcher->run()
#13 {main}

https://gyazo.com/f1036468ba31ad2f60feb5d84af1fa92

Did you link the discord owner?

Link to comment
Share on other sites

On 16/02/2018 at 1:24 PM, Willie88 said:

hey @Ahmad E.

if i have login handler activated every user of my community gets http 500 error

 

if i deactivate the discord login handler everything is working.

 

500 Error should be logged at the server level, i.e. apache/php error logs, can you take a look please? If you find an error, please PM me the message.

Link to comment
Share on other sites

  • 2 weeks later...

Good Day,

I purchased the integration and our community loves it. We do have a feature request - should you ever do another release...

Would it be possible to add the ability for @ Mentions to be sent to a specific channel on Discord like posts and topics? It would be the final bit that would make our site close to perfect (we're a storytelling RPG).

Thank you for the hard work. It is really appreciated.

Warmest Regards ~ Stormwolfe

Link to comment
Share on other sites

24 minutes ago, Stormwolfe said:

Good Day,

I purchased the integration and our community loves it. We do have a feature request - should you ever do another release...

Would it be possible to add the ability for @ Mentions to be sent to a specific channel on Discord like posts and topics? It would be the final bit that would make our site close to perfect (we're a storytelling RPG).

Thank you for the hard work. It is really appreciated.

Warmest Regards ~ Stormwolfe

Non topic related question: what is your forum's URL ? Thanks ! :)

Link to comment
Share on other sites

8 hours ago, Stormwolfe said:

Good Day,

I purchased the integration and our community loves it. We do have a feature request - should you ever do another release...

Would it be possible to add the ability for @ Mentions to be sent to a specific channel on Discord like posts and topics? It would be the final bit that would make our site close to perfect (we're a storytelling RPG).

Thank you for the hard work. It is really appreciated.

Warmest Regards ~ Stormwolfe

+1 to this. This would be amazing. Everything about Discord is great so far. I think this would make it perfect.

Link to comment
Share on other sites

Ya boi has a pretty-fied login icon through pure CSS. Throw it in your stylesheet if you want!

/* Discord Login */
.discordSocial
{
  	background: #7289DA;
}

.discordSocial .ipsSocial_icon i:before
{
  	content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 713.80402'><path fill='%23ffffff' d='M362 0c-13 0-123 3-239 89C123 89 0 311 0 584c0 0 72 124 261 130l58-70a268 268 0 0 1-150-101l24 15 3 2 8 4c21 12 43 21 62 29a652 652 0 0 0 348 38 615 615 0 0 0 223-88s-43 70-155 101l57 69c189-6 261-129 261-129 0-273-123-495-123-495C754-3 637 0 637 0l-12 14a563 563 0 0 1 213 108 712 712 0 0 0-431-80l-15 2a671 671 0 0 0-245 78s71-68 225-112l-9-10h-1zm-22 316c49 0 88 42 88 94 0 53-39 95-88 95-48 0-87-42-87-95 0-52 38-94 87-94zm313 0c48 0 87 42 87 94 0 53-38 95-87 95-48 0-87-42-87-95 0-52 38-94 87-94z'/></svg>");
    display: block;
    width: 21px;
}

Capture.PNG.85eacbbf2a2bb104783812884fab23d4.PNG

Looks pretty good!

Edited by silenceheaven
Link to comment
Share on other sites

  • 2 weeks later...

Hey @Ahmad E., hope you're doing well. 

I've got a quick question for you with a new error I just started getting out of no where.

Uncaught Exception:
IPS\discord\Api\Exception\UnauthorizedException:  (0)

discord_exception:
array (
  'code' => 0,
  'message' => '401: Unauthorized',
)

Any idea what could be causing this? I tried just about everything including reinstalling the app and setting the bots back up with no luck. Just constant UnauthorizedException (401).

I don't want to be that prick, but this is definitely kind of an emergency as such a large portion of my community relies on this sign-in method and can't access the website without it.

Thank you!

Link to comment
Share on other sites

2 hours ago, pndemc said:

Hey @Ahmad E., hope you're doing well. 

I've got a quick question for you with a new error I just started getting out of no where.


Uncaught Exception:
IPS\discord\Api\Exception\UnauthorizedException:  (0)

discord_exception:
array (
  'code' => 0,
  'message' => '401: Unauthorized',
)

Any idea what could be causing this? I tried just about everything including reinstalling the app and setting the bots back up with no luck. Just constant UnauthorizedException (401).

Never mind this was completely user error, as usual. I accidentally got my Bot Token and Client Secret backwards.... twice. I guess I'm losing my mind after all.

Link to comment
Share on other sites

Is there anyway to make the application/bot mention a group in Discord (or, if not, are there plans to add this function in the future)? In the attached file, I tried to do so by typing "[at]leadership (specific role in my Discord), etc" but it was not able to mention the group. 

 

If this would work, this would pretty much "solve" the mobile issue for my users by adding in [at]everyone mentions for news, [at]specific-group mentions for more specific topics, etc.

discordintprob.png

Link to comment
Share on other sites

Turned on Discord nickname sync.  When I then go to account settings I get this error message.

 

IPS\discord\Api\Exception\ForbiddenException:  (0)
#0 /var/www/html/b281092/applications/discord/sources/Api/AbstractResponse.php(64): IPS\discord\Api\_AbstractResponse->throwException(403)
#1 /var/www/html/b281092/applications/discord/sources/Api/GuildMember.php(57): IPS\discord\Api\_AbstractResponse->handleApi()
#2 /var/www/html/b281092/applications/core/sources/ProfileSync/Discord.php(63): IPS\discord\Api\_GuildMember->update(Object(IPS\Member))
#3 /var/www/html/b281092/applications/core/sources/ProfileSync/Discord.php(128): IPS\core\ProfileSync\_Discord->user()
#4 /var/www/html/b281092/system/Theme/Theme.php(824) : eval()'d code(7743): IPS\core\ProfileSync\_Discord->name()
#5 /var/www/html/b281092/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_system->settingsOverview(Array, NULL)
#6 /var/www/html/b281092/applications/core/modules/front/system/settings.php(160): IPS\Theme\_SandboxedTemplate->__call('settingsOvervie...', Array)
#7 [internal function]: IPS\core\modules\front\system\_settings->_overview()
#8 /var/www/html/b281092/applications/core/modules/front/system/settings.php(54): call_user_func(Array)
#9 /var/www/html/b281092/system/Dispatcher/Controller.php(96): IPS\core\modules\front\system\_settings->manage()
#10 /var/www/html/b281092/applications/core/modules/front/system/settings.php(34): IPS\Dispatcher\_Controller->execute()
#11 /var/www/html/b281092/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\front\system\_settings->execute()
#12 /var/www/html/b281092/index.php(12): IPS\_Dispatcher->run()
#13 {main}

 

Link to comment
Share on other sites

On 15.3.2018 at 8:50 PM, Benjamin Garrison said:

Turned on Discord nickname sync.  When I then go to account settings I get this error message.

 


IPS\discord\Api\Exception\ForbiddenException:  (0)
#0 /var/www/html/b281092/applications/discord/sources/Api/AbstractResponse.php(64): IPS\discord\Api\_AbstractResponse->throwException(403)
#1 /var/www/html/b281092/applications/discord/sources/Api/GuildMember.php(57): IPS\discord\Api\_AbstractResponse->handleApi()
#2 /var/www/html/b281092/applications/core/sources/ProfileSync/Discord.php(63): IPS\discord\Api\_GuildMember->update(Object(IPS\Member))
#3 /var/www/html/b281092/applications/core/sources/ProfileSync/Discord.php(128): IPS\core\ProfileSync\_Discord->user()
#4 /var/www/html/b281092/system/Theme/Theme.php(824) : eval()'d code(7743): IPS\core\ProfileSync\_Discord->name()
#5 /var/www/html/b281092/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_system->settingsOverview(Array, NULL)
#6 /var/www/html/b281092/applications/core/modules/front/system/settings.php(160): IPS\Theme\_SandboxedTemplate->__call('settingsOvervie...', Array)
#7 [internal function]: IPS\core\modules\front\system\_settings->_overview()
#8 /var/www/html/b281092/applications/core/modules/front/system/settings.php(54): call_user_func(Array)
#9 /var/www/html/b281092/system/Dispatcher/Controller.php(96): IPS\core\modules\front\system\_settings->manage()
#10 /var/www/html/b281092/applications/core/modules/front/system/settings.php(34): IPS\Dispatcher\_Controller->execute()
#11 /var/www/html/b281092/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\front\system\_settings->execute()
#12 /var/www/html/b281092/index.php(12): IPS\_Dispatcher->run()
#13 {main}

 

Having the exact same issue.

Edit: The User we Synced (for testing) was NOT the Discord Server Owner

 

Edit2: Nevermind this Post, Problem solved by moving the SyncBot at the TOP of Roles on Discord, so every synced member/role is under it.

qxIuWRAtA.png

Edited by NeoIII
Link to comment
Share on other sites

Could somebody here assist with an issue i'm having? Seems to be the same problem others were having with trying to sync the discord owner with IPS. I just don't know how to resolve it and I haven't got a reply from the developer in over two weeks.

Edited by AltarRS
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...