Making return to last channel after server kick

Hey guys im trying to make a plugin that connects to server and returns to last channel after a server kick.
he is my code so far
uint64 scHID = 0;
ts3Functions.guiConnect(PLUGIN_CONNECT_TAB_CURRENT, “test”, “serveraddress”, “”, “nickname”, “”, “”, “”, “”, “”, “”, “”, “”, “”, &scHID);

but i dont know how to return to last channel. can u help me with that?

twitch instagram twitter facebook