Switches out your Pokemon
Source: Experience
BTW B3N > Swaggron Nuff said :3
In gen 8, teleport has -6 priority.
If this move is successful and the user has not fainted, the user switches out even if it is trapped and is replaced immediately by a selected party member. The user does not switch out if there are no unfainted party members.
source