API:JoinChannel

or command available in chat:

Parameters
name - string - the name of the channel you will join.  password  - string - the paswword of the channel.

Return
channel - number - the number of the channel that you join.