Skip to content

Commit a473d50

Browse files
authored
[provisional acocunts] add header to bot token example (#7845)
* add header to example * content type
1 parent c01d51c commit a473d50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ from models import GameAccount
136136
def get_provisional_token(game_account: GameAccount):
137137
response = requests.post(
138138
'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+
},
139143
json={
140144
'external_user_id': game_account.id, # your account system's unique id
141145
'preferred_global_name': game_account.display_name, # your account system's display name for the user

0 commit comments

Comments
 (0)