code: public function channelCreate(array $properties)
      {
          $cid = $this->execute("channelcreate", $properties)->toList();
          $this->channelListReset();
  
          if (!isset($properties["client_flag_permanent"]) && !isset($properties["client_flag_semi_permanent"])) {
              $this->getParent()->whoamiSet("client_channel_id", $cid["cid"]);
          }
  
          return $cid["cid"];
      }
docs: Creates a new channel using given properties and returns the new ID.
  
  @param  array $properties
  @return integer