-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[docs] Add bot token unmerge endpoint documentation #7886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8858ef2 to
da70cb5
Compare
| @@ -498,6 +498,28 @@ def unmerge_provisional_account(external_auth_token): | |||
| 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. | |||
| ::: | |||
|
|
|||
| #### Unmerging with Bot Token Endpoint | |||
|
|
|||
| If you're using the [Bot Token Endpoint](/docs/discord-social-sdk/development-guides/using-provisional-accounts#server-authentication-with-bot-token-endpoint) for authentication, you can unmerge accounts without an external auth token. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to mention that you can use this to unmerge even if you've lost the discord auth token?
Something like:
:::info
This endpoint can also be useful in cases where the Discord Auth token has been lost to to error or data loss, and an unmerge operation is required to migrate to a provisional account before re-linking a Discord account.
:::
WDYT?
Document the new /provisional-accounts/unmerge/bot endpoint that allows unmerging provisional accounts using just the bot token and external_user_id, without requiring an external auth token. This ensures identities can always be removed even if the external auth token is no longer accessible. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add "Tip" for being able to recover an account that's lost its auth token due to data loss or error.
da70cb5 to
cf261fd
Compare
| ``` | ||
|
|
||
| <Tip> | ||
| This endpoint can also be useful in cases where the Discord Auth token has been lost to to error or data loss, and an unmerge operation is required to migrate to a provisional account before re-linking a Discord account. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like autocorrect got involved.
| This endpoint can also be useful in cases where the Discord Auth token has been lost to to error or data loss, and an unmerge operation is required to migrate to a provisional account before re-linking a Discord account. | |
| This endpoint can also be useful in cases where the Discord Auth token has been lost due to error or data loss, and an unmerge operation is required to migrate to a provisional account before re-linking a Discord account. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate the find - but this is already merged. Would love a small PR to fix!

Added a dedicated method for the bot token flow to make unmerging possible even if you've lost the discord auth token. updating the docs to describe it.