The /hidenext command isn't working for non ladder games, tested with Gen 8 Random Battle and VGC 2021 Series 9 and both times when a game was opened after using /hidenext it appeared under "Battles" without a private room URL.
BUG STATUS: CONFIRMED - CHAT (CLIENT) , I also decided to dig into this bug myself; the tl;dr is that the /hidenext command, when used manually, basically does almost nothing because the "Don't allow spectators" checkbox is overriding it. The easiest workaround to fix your issue is to just use that checkbox. (DaWoblefet)
Technical explanation On client, ticking the "Don't allow spectators" checkbox actually does nothing by itself - it only updates in conjunction with a battle request being sent to the server. When you toggle the checkbox initially to checked and challenge a user, a /hidenext request is sent prior to the challenge. The client then stores a hiddenNextBattle value of true, and that's why the password is added to the back of the URL. But because unchecking the box doesn't actually do anything by itself, in order to account for this, if there is a hiddenNextBattle value of true in app.user.get('settings') but the checkbox is unchecked, it is assumed that you just unchecked the box and so sends a /hidenext off request to the server before the challenge. The relevant logic here is on the client in client-mainmenu#adjustPrivacy.
One way to fix this would be to force the checkbox to instantly update the user's hiddenNextBattle settings instantly on clicking the checkbox. This might have undesirable behavior though; for example, you might check the box for a ladder game, not start the ladder game because you saw a friend send a challenge request, and accept the friend's challenge request with hiddenNextBattle true. The other way to fix this is to make the /hidenext command do nothing when typed manually by users. Either way, there's going to be some undesirable behavior.
Last edited by a moderator: May 22, 2021