Hi, bit of an odd one here!
Everything installed well, but when I try to edit Discord roles in XF Admin, I get the following error when I hit save:
Then, even though the checked boxes are actually saved, Discord users aren't having their Discord role assigned to them according to their XF group.
Bot is otherwise working well, posting threads to the correct Discord channels, DMing the user their watched alerts. Testing shows the bot has the required permissions:
We're on XF v2.3.3, PHP 8.3.14, Standard Library 1.21.9. The error happens whether attempting to edit admin-level roles or user-level roles.
Any ideas?
Everything installed well, but when I try to edit Discord roles in XF Admin, I get the following error when I hit save:
GuzzleHttp\Exception\ClientException: Client error:PATCH https://discord.com/api/guilds/1308090346806186086/roles/1308091284212158564
resulted in a403 Forbidden
response: {"message": "Missing Permissions", "code": 50013} in src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php at line 113
- GuzzleHttp\Exception\RequestException::create() in src/vendor/guzzlehttp/guzzle/src/Middleware.php at line 72
- GuzzleHttp\Middleware::GuzzleHttp\{closure}() in src/vendor/guzzlehttp/promises/src/Promise.php at line 209
- GuzzleHttp\Promise\Promise::callHandler() in src/vendor/guzzlehttp/promises/src/Promise.php at line 158
- GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() in src/vendor/guzzlehttp/promises/src/TaskQueue.php at line 52
- GuzzleHttp\Promise\TaskQueue->run() in src/vendor/guzzlehttp/promises/src/Promise.php at line 251
- GuzzleHttp\Promise\Promise->invokeWaitFn() in src/vendor/guzzlehttp/promises/src/Promise.php at line 227
- GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 272
- GuzzleHttp\Promise\Promise->invokeWaitList() in src/vendor/guzzlehttp/promises/src/Promise.php at line 229
- GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 69
- GuzzleHttp\Promise\Promise->wait() in src/vendor/guzzlehttp/guzzle/src/Client.php at line 189
- GuzzleHttp\Client->request() in src/addons/NF/Discord/Api.php at line 1020
- NF\Discord\Api->request() in src/addons/NF/Discord/Api.php at line 1142
- NF\Discord\Api->patch() in src/addons/NF/Discord/Api.php at line 546
- NF\Discord\Api->patchRole() in src/addons/NF/Discord/Api.php at line 519
- NF\Discord\Api->updateRole() in src/addons/NF/Discord/Admin/Controller/Role.php at line 109
- NF\Discord\Admin\Controller\Role->actionSave() in src/XF/Mvc/Dispatcher.php at line 362
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
- XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
- XF\App->run() in src/XF.php at line 806
- XF::runApp() in admin.php at line 15
Then, even though the checked boxes are actually saved, Discord users aren't having their Discord role assigned to them according to their XF group.
Bot is otherwise working well, posting threads to the correct Discord channels, DMing the user their watched alerts. Testing shows the bot has the required permissions:
We're on XF v2.3.3, PHP 8.3.14, Standard Library 1.21.9. The error happens whether attempting to edit admin-level roles or user-level roles.
Any ideas?