Open bitfl0wer opened 1 year ago
https://docs.spacebar.chat/routes/#patch-/users/-id-/profile/ Has to be implemented for pronouns and other stuff
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
{"phone":"+123456789","change_phone_reason":"user_settings_update"}
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
{"phone_token":"eyJpZCI6NDYzNjQwMzkxMTk2MDgyMTc4LCJwaG9uZSI6IisxMjM0NTY3ODkifQ==.ZvzUJg.6_5e-y_lytG2_KIeBcRxNVy2WlE","password":"youruserpassword","change_phone_reason":"user_settings_update"}
It should be possible to modify all aspects of a user profile using this library. This includes, but is not limited to: