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
        ]);
    }
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
        ]);
    }
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 ] ) ; }
Edit a channel.

@param string $channelId Required
@param string $name      Required
@param int    $position
@param string $topic
@return array
Edit a channel .