-
def system(type): # Android, iOS, Client, and Web
ws = discord.gateway.DiscordWebSocket
exec(inspect.getsource(ws.identify).replace('payload = {', f'presence["status"] = "online"\n\x20\x20\x20\x20\x20\x20\x20\x20self._super_properties["browser_user_agent"] = "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Mobile/15E148 Safari/604.1"\n\x20\x20\x20\x20\x20\x20\x20\x20self._super_properties["browser_version"] = "16.5"\n\x20\x20\x20\x20\x20\x20\x20\x20self._super_properties["os_version"] = "17"\n\x20\x20\x20\x20\x20\x20\x20\x20self._super_properties["browser"] = "Discord {type}"\n\x20\x20\x20\x20\x20\x20\x20\x20self._super_properties["device"] = "Discord {type}"\n\x20\x20\x20\x20\x20\x20\x20\x20self._super_properties["os"] = "{type}"\n\x20\x20\x20\x20\x20\x20\x20\x20payload = ' + '{')[4:] + "\nws.identify = identify", {'ws': ws, 'sys': sys, '_log': discord.gateway._log})
system('iOS') This code overrides what the client sends to the websocket and instead of sending |
Beta Was this translation helpful? Give feedback.
Answered by
Iinksafe
Sep 21, 2023
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Iinksafe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#270 (comment)