getMenuForIndex gives you a topLevelMenuIndex as an int, and menuName as a String. All the examples I can find seem to use the topLevelMenuIndex, so why is there the menuName option?
Sorry if this is obvious, but I’m trying to wrap my head around menus and ApplicationCommandManagers.