"Hiding Enemies" Help

How do I get enemies to hide in RPG Maker MV? I'm trying to do a battle where an enemy swaps out halfway through then comes back. I tried $gameTroop.members()[1].hide(); , but it comes up with 'cannot read hide of undefined' or something like that.
@Pinkyrocket I've split your post into it's own thread, as the other one is very old. One of the many reasons we discourage necroposting is that, for example in this case, MV has been through many updates since that person's issue. Therefore, the solution may not be the same. Please edit your original post giving details of what you are trying to accomplish and screenshots if necessary.

Original thread: https://forums.rpgmakerweb.com/threads/hiding-enemies-help.104957/