how to detect which difficulty the world is without `/difficulty` or F3 menu (using commands)

help <a:vanish:1230918448402399292>
Continue to help post