Selim III besteg thronell 1789.