Question: When I try to acces [`/api/users/@me/settings`](https://discordapp.com/api/users/@me/settings) via a `GET`, `POST` or `PATCH`, I always get a `{"message": "401: Unauthorized", "code": 0}`. When I acces [`/api/users/@me`](https://discordapp.com/api/users/@me) with the Authorization header set to `Bearer <my-acces-key>`, I do get a 200 OK response, with my data. I have the `identify` and the `rpc.api` scopes. Do I have to set other scopes?

Answer: 
If you want to gain an Oauth-2 token, you have to take a look at the offical documentation here: <https://discordapp.com/developers/docs/topics/oauth2>  
Right now, you probably won't be able to do RPC requests as you have to apply for RPC access by submitting your application to Discord and they have to approve it.
I had to use my own Discord token not the application key. Check out how to get it [here](https://discordhelp.net/discord-token).

MAKE SURE NOT TO SHARE YOUR DISCORD TOKEN!