original_string: public function edit($channelId, $name = null, $position = null, $topic = null)
      {
          $channel = $this->show($channelId);
          $json['name'] = is_null($name) ? $channel['name'] : $name;
          $json['position'] = is_null($position) ? $channel['position'] : $position;
          $json['topic'] = is_null($topic) ? $channel['topic'] : $topic;
  
          return $this->request('PATCH', 'channels/' . $channelId, [
              'json' => $json
          ]);
      }
code: public function edit($channelId, $name = null, $position = null, $topic = null)
      {
          $channel = $this->show($channelId);
          $json['name'] = is_null($name) ? $channel['name'] : $name;
          $json['position'] = is_null($position) ? $channel['position'] : $position;
          $json['topic'] = is_null($topic) ? $channel['topic'] : $topic;
  
          return $this->request('PATCH', 'channels/' . $channelId, [
              'json' => $json
          ]);
      }
code_tokens: public function edit ( $ channelId , $ name = null , $ position = null , $ topic = null ) { $ channel = $ this -> show ( $ channelId ) ; $ json [ 'name' ] = is_null ( $ name ) ? $ channel [ 'name' ] : $ name ; $ json [ 'position' ] = is_null ( $ position ) ? $ channel [ 'position' ] : $ position ; $ json [ 'topic' ] = is_null ( $ topic ) ? $ channel [ 'topic' ] : $ topic ; return $ this -> request ( 'PATCH' , 'channels/' . $ channelId , [ 'json' => $ json ] ) ; }
docstring: Edit a channel.
  
  @param string $channelId Required
  @param string $name      Required
  @param int    $position
  @param string $topic
  @return array
docstring_tokens: Edit a channel .