Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Auth related errors #17

Closed
dscryhub opened this issue Aug 8, 2016 · 2 comments
Closed

Auth related errors #17

dscryhub opened this issue Aug 8, 2016 · 2 comments

Comments

@dscryhub
Copy link

dscryhub commented Aug 8, 2016

I decided to do a git pull to get the latest version, and update the config (copying over info to new config.php file) and started the bot, wouldn't respond to any commands, checked error log and was greeted with this:

PHP Fatal error:  Uncaught exception 'Discord\Exceptions\PartRequestFailedException' with message 'Erorr code 403: You do not have permission to do this. FORBIDDEN - {"code": 50013, "message": "Missing Permissions"} - guilds/104777608939487232/members/204340407654416385' in /home/leon/discordbot/Dramiel/vendor/team-reflex/discord-php/src/Discord/Parts/Part.php:231
Stack trace:
#0 /home/leon/discordbot/Dramiel/src/plugins/onTick/authCheck.php(134): Discord\Parts\Part->save()
#1 /home/leon/discordbot/Dramiel/src/plugins/onTick/authCheck.php(94): authCheck->checkAuth()
#2 /home/leon/discordbot/Dramiel/Dramiel.php(145): authCheck->tick()
#3 [internal function]: {closure}(Object(React\EventLoop\Timer\Timer))
#4 /home/leon/discordbot/Dramiel/vendor/react/event-loop/src/Timer/Timers.php(90): call_user_func(Object(Closure), Object(React\EventLoop\Timer\Timer))
#5 /home/leon/discordbot/Dramiel/vendor/react/event-loop/src/StreamSelectLoop.php(177): React\EventLoop\Timer\Timers->tick()
#6 /home/leon/discordbot/Dramiel/vendor/team-reflex/ in /home/leon/discordbot/Dramiel/vendor/team-reflex/discord-php/src/Discord/Parts/Part.php on line 231

If i comment out guildID and periodicCheck in config.php the bot responds, but raises errors for missing guildID and periodicCheck

Any thoughts?

@shibdib
Copy link
Owner

shibdib commented Aug 13, 2016

make sure the bot is in a role with the correct permissions

best bet is to make a bot role, drag it up to the top of the list, and set it as an admin.

@dscryhub
Copy link
Author

already had it in a bot role, re-created it and did the drag up to the top of the list, set it to admin again and it's now working again o7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants