API GetAccountExpansionLevel

Returns the expansion level the account has been flagged for. expansionLevel = GetAccountExpansionLevel

Returns

 * expansionLevel : number - The expansion the player's game license has been flagged for.

Example
Before and after pre-ordering the Shadowlands expansion. Requires a client restart to update, if still in-game. /dump GetAccountExpansionLevel -- 7 -> 8