Yeah, so I wrote this but it's giving me a HTTP 400 error, what could be the problem? https://pastebin.com/y5XQUBvL (sorry, the text editor here collapses all my spacing, making the code unreadable)
The error happens after user.acceptFriendRequest
I'm certain that the user object is correct as user.name gives the correct nickname of the user, so it must be something with how I'm calling the method
Edit, nvm, there was a problem with how I was triggering the acceptFriendRequest