We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c01d51c commit a473d50Copy full SHA for a473d50
docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx
@@ -136,6 +136,10 @@ from models import GameAccount
136
def get_provisional_token(game_account: GameAccount):
137
response = requests.post(
138
'https://discord.com/api/v10/partner-sdk/token/bot',
139
+ headers={
140
+ 'Content-Type': 'application/json',
141
+ 'Authorization': 'Bot <BOT_TOKEN>' # your application's bot token
142
+ },
143
json={
144
'external_user_id': game_account.id, # your account system's unique id
145
'preferred_global_name': game_account.display_name, # your account system's display name for the user
0 commit comments