chorus icon indicating copy to clipboard operation
chorus copied to clipboard

User profile customization

Open bitfl0wer opened this issue 2 years ago • 2 comments

It should be possible to modify all aspects of a user profile using this library. This includes, but is not limited to:

  • [x] Username
  • [x] Discriminator
  • [x] Avatar
  • [x] Accent Color
  • [x] Email
  • [x] Pronouns
  • [x] Banner
  • [x] Bio
  • [x] Theme Colors
  • [ ] Phone
  • [x] NSFW
  • [x] Disabled
  • [x] Deletion
  • [ ] Testing

bitfl0wer avatar May 12 '23 21:05 bitfl0wer

https://docs.spacebar.chat/routes/#patch-/users/-id-/profile/ Has to be implemented for pronouns and other stuff

bitfl0wer avatar May 19 '23 15:05 bitfl0wer

For changing phone numbers:

  • DELETE /api/v9/users/@me/phone {"password":"userpassword","change_phone_reason":"user_settings_update"} Which also requires MFA

  • POST https://discord.com/api/v9/users/@me/phone body: {"phone":"+123456789","change_phone_reason":"user_settings_update"} response: {"captcha_key":["You need to update your app to verify your phone number."],"captcha_sitekey":"a9b5fb07-92ff-493f-86fe-352a2803b3df","captcha_service":"hcaptcha","captcha_session_id":"b26ec20e-bc5d-47a4-a034-5e2bdf3118e0","captcha_rqdata":"GhZwUaCCrbep9ouFbd65E9y8ghkj9KK4Gc/mhAxuEPE1kJopjoVuvHjlebeRQCLzxh9VbikA4UyW23dx1Hr3inLmchVHgdgYnPYVr31I90zsQz43NYVFhfGLRE0AZ87c9SfEjDz0ARXWcA==eyOrv8lyhoKQW9dG","captcha_rqtoken":"IlZpTGVTNllUOXExVmhuZDNSWllmTTFKL2pPRjN5N1B3dFlZN1diSFE3dXpsMmtyeUszS2VqRWNvZWdSRjBteDFRdnd6Tnc9PUJJQWR4LzFUdkJnanphSUwi.aCBUYw.4LGVTyA6sSvFl93wS8DOnjZYYKc"} after solving the captcha, it retries the request with X-Captcha-Key, X-Captcha-Rqtoken and X-Captcha-Session-Id headers

  • POST https://discord.com/api/v9/phone-verifications/verify once your receive the code {"phone":"+123456789","code":"123455"}, which returns {"token":"eyJpZCI6NDYzNjQwMzkxMTk2MDgyMTc4LCJwaG9uZSI6IisxMjM0NTY3ODkifQ==.ZvzUJg.6_5e-y_lytG2_KIeBcRxNVy2WlE"}

Then you need to solve a captcha and provide your password

  • POST https://discord.com/api/v9/users/@me/phone {"phone_token":"eyJpZCI6NDYzNjQwMzkxMTk2MDgyMTc4LCJwaG9uZSI6IisxMjM0NTY3ODkifQ==.ZvzUJg.6_5e-y_lytG2_KIeBcRxNVy2WlE","password":"youruserpassword","change_phone_reason":"user_settings_update"}

kozabrada123 avatar Oct 02 '24 05:10 kozabrada123