API GetExpansionLevel

Returns the expansion level currently accessible by the player. expansionLevel = GetExpansionLevel

Returns

 * expansionLevel : number - The newest expansion currently accessible by the player.

Details

 * Trial/Starter accounts are automatically upgraded to the second to last expansion.
 * Updated after fires.

Example
Before and after the Shadowlands global launch at November 23 2020 at 3:00 p.m. PST. Requires the player to have pre-ordered/purchased the expansion. /dump GetExpansionLevel -- 7 -> 8 /dump GetAccountExpansionLevel -- 8 /dump GetServerExpansionLevel -- 7 -> 8

Which is basically min(, )