CustomGame.SwapTeam(int slot);
public bool SwapTeam(
    int slot, 

Slot to swap team.
Type: int

Swaps the team of a player. Swapping a blue player will swap their team to red. A red player will swap swap to blue. A player queueing for blue team will be swapped to queueing for red and vice versa.