polyphony-chat / chorus

A Rust library for interacting with multiple Polyphony- and Spacebar-Compatible instances at once.
https://crates.io/crates/chorus
Mozilla Public License 2.0
16 stars 7 forks source link

New gateway event: USER_REQUIRED_ACTION_UPDATE #539

Open kozabrada123 opened 1 month ago

kozabrada123 commented 1 month ago

Recorded event data:

{"required_action":"REQUIRE_VERIFIED_PHONE"}
kozabrada123 commented 1 month ago

mmmm screenshot-verification-required

kozabrada123 commented 1 month ago

Screenshot 2024-07-28 at 13-36-28 • Discord Friends

kozabrada123 commented 1 month ago

pressing that button seems to send a POST to discord.com/api/v9/users/@me/phone (the change phone number endpoint?) with the following body:

{"phone":"+93555555555","change_phone_reason":"user_action_required"}

The received response:

{"message": "Please use a valid mobile phone number, not a VoIP or landline number.", "code": 70005}
kozabrada123 commented 1 month ago

And being in this state means all of your normal api requests return a 403

kozabrada123 commented 1 month ago

See https://docs.discord.sex/topics/gateway-events#user-required-action-update