By overriding, you get future updates usually without additional effort. Now all there is left to do is overwrite the during runtime in the main file, something like this : import discordĭ = mobile_status.get_mobile() The specific values for the $os, $browser, and $device fields are can change from time to time. The mobile indicator is not triggered by the mobile client. The mobile indicator is is triggered by the desktop client. If it's set to Discord Android on desktop, The exact field that is checked is the $browser field. The Gateway's IDENTIFY packet contains a properties field, containing $os, $browser and $device fields.ĭiscord uses that information to know when your phone client and only your phone client has connected to Discord,įrom there they send the extended presence object. Apparently, discord bots can have mobile status as opposed to the desktop (online) status that one gets by default.Īfter a bit of digging I found out that such a status is achieved by modifying the IDENTIFY packet in modifying the value of $browser to Discord Android or Discord iOS should theoretically get us the mobile status.Īfter modifying code snippets I found online which does this, I end up with this : def get_mobile():
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |