code: public function channelPermList($cid, $permsid = false)
      {
          return $this->execute("channelpermlist", array("cid" => $cid, $permsid ? "-permsid" : null))->toAssocArray(
              $permsid ? "permsid" : "permid"
          );
      }
docs: Returns a list of permissions defined for a specific channel.
  
  @param  integer $cid
  @param  boolean $permsid
  @return array