When attempting to /kick yourself from a singleplayer world, the message "Cannot kick server owner in LAN game" shows up. This makes sense in a LAN world, but since the world is not opened to LAN I believe a different message would be more suitable (or actually instead run the command).
I assume this is still an issue as of 23w41a but because of MC-265767 I technically can't know for sure lol