Max occupancy discovery

Hello everyone. Is there a way to find out the max occupancy ? I cant find anything related to that. i.e room.getMaxOccupant . Many thanks.

There is only a methode:

muc.getRoomInfo(connection, room).getOccupantsCount();

As far as i know, no max discovery.

Hmm, yer this method only gets the number of people currently in the room no ? Unfortunately, I cannot find out how many people are allowed in the room. So , I have to hardcode a value and make sure it matches the value in the admin console : /