Open auyylaso opened 3 weeks ago
Well this is supposed to throw an error as this is unintentional behavior. Not sure what you expect a check to fix because the set permissions will fail anyways.
Just a catch that throws a message in the discord channel that the user is using. It's not needed but would be good to have some sort of feedback that isn't just terminal side.
The catch is already there for the exception. Maybe it's pointless but I'm more so thinking for the less technical savvy that may not know why the bot isn't setting permission and doesn't realize they can use ?debug to print the logs
Duplicate of #3275
Duplicate of #3275
Not exactly the one you posted is an error caused by a lack of permissions aka a 403 response the error that I posted is about a missing category making it so the bot can't change permissions.
Bot Version
4.1.0
How are you hosting Modmail?
PM2
Error Logs
Check additional info
Screenshots
No response
Additional Information
If you delete the main_category_id on discord side without updating it in the config command it will cause the bot to throw this error when trying to set "perms add level (LEVEL) Role"
Very simple fix just add a check before trying to update perms in the event the user is an idiot like me :D I know nothing about this project otherwise I'd just make a PR plus I'm awful at python.