async def update_state(self, data):
guild_id = int(data['<STR_LIT>'])<EOL>if guild_id in self.players:<EOL><INDENT>player = self.players.get(guild_id)<EOL>player.position = data['<STR_LIT:state>'].get('<STR_LIT>', <NUM_LIT:0>)<EOL>player.position_timestamp = data['<STR_LIT:state>']['<STR_LIT:time>']<EOL><DEDENT>
Updates a player's state when a payload with opcode ``playerUpdate`` is received.