to give you some context i am building a botnet and i need to get the authorization header from here is the link https://discordapp.com/api/v6/users/@me
I have already tried this
user = requests.get( "https://discordapp.com/api/v6/users/@me", headers = {"Content-Type": "application/json", "Authorization": token}, ).json()
Try using the following way.
You can find further details at the following link.