WoW API: ArenaTeamRoster
Requests the latest data from the server of a specific arena team that you are in
void ArenaTeamRoster(teamIndex)
Arguments
- teamIndex - integer
- values
- 1 - 3. You can be an a maximum of three arena teams
Remarks
Calling this function will result in a server request for the latest information of an arena team. You must also call this function before you use any other arena team functions upon logging in.
When the new data is ready to use with other arena team functions, the events "ARENA_TEAM_UPDATE" or "ARENA_TEAM_ROSTER_UPDATE" will fire. I haven't distinguished the difference between the two events yet.
It is important to note that when the events fire, the built in Arena Team frame that ships with WoW will respond to the event. You must make sure that the frame's team is the same as the index you have chosen. This will avoid GetNumArenaTeamMembers from crashing in the built in frame. To do so, have the following code before you call ArenaTeamRoster():
- PvPTeamDetails.team = teamIndex;
- ArenaTeamRoster(teamIndex);