It would be discovered checkmate then?
Yes you can check it out:https://www.chess.com/game/live/169033518638
Nice, well done
Search on you tube how can you do it. It is indeed a discovered checkmate by moving your king
But they already did it, they don't need to look it up