Skip to content

Commit 527a011

Browse files
committed
Social SDK: Add data migration details for merge/unmerge operations
Document what data transfers during account merging and unmerging operations, including friends, lobby memberships, and DM message limitations.
1 parent 2e8637f commit 527a011

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ client->UpdateProvisionalAccountDisplayName("CoolPlayer123", [](discordpp::Clien
222222

223223
## Merging Provisional Accounts
224224

225-
When a player wants to convert their provisional acount to a full Discord account.
225+
When a player wants to convert their provisional account to a full Discord account.
226226

227227
### Merging Provisional Accounts for Public Clients
228228

@@ -349,6 +349,16 @@ def exchange_device_code_with_merge(device_code):
349349
}
350350
```
351351

352+
### Data Migration During Merging
353+
354+
When a user merges their provisional account with a Discord account, the following data is automatically transferred:
355+
356+
* **Friends**: All In-game and Discord friendships made through the provisional account
357+
* **Lobby Memberships**: Active and historical lobby participation
358+
* **❌ DM Messages**: Message history is not migrated during merging
359+
360+
This migration ensures users don't lose their social connections built while using the provisional account.
361+
352362
---
353363

354364
## Unmerging Provisional Accounts
@@ -460,6 +470,19 @@ def unmerge_provisional_account(external_auth_token):
460470
If you have a server backend, you'll want to use the server-to-server unmerge endpoint rather than the SDK helper method to maintain better security and control over the unmerge process.
461471
:::
462472

473+
### Relationship Transfer During Unmerging
474+
475+
When a user unmerges their account, a new provisional account is created with a new user ID. The relationship transfer follows these rules:
476+
477+
* **✅ In-game friends**: All copied to the new provisional account
478+
* **✅ Discord friends who use this application**: Copied to the provisional account
479+
* **❌ Discord friends who don't use this application**: Not transferred
480+
* **❌ DM message history**: Not moved to provisional accounts
481+
482+
:::info
483+
Provisional accounts can have Discord friends, but can only message these friends when actively playing the game.
484+
:::
485+
463486
---
464487

465488
## Next Steps

0 commit comments

Comments
 (0)