public function moveMember($channel)
    {
        $deferred = new Deferred();

        if ($channel instanceof Channel) {
            $channel = $channel->id;
        }

        $this->http->patch(
            "guilds/{$this->guild_id}/members/{$this->id}",
            [
                'channel_id' => $channel,
            ]
        )->then(function () use ($deferred) {
            $deferred->resolve();
        }, \React\Partial\bind_right($this->reject, $deferred));

        // At the moment we are unable to check if the member
        // was moved successfully.

        return $deferred->promise();
    }
public function moveMember($channel)
    {
        $deferred = new Deferred();

        if ($channel instanceof Channel) {
            $channel = $channel->id;
        }

        $this->http->patch(
            "guilds/{$this->guild_id}/members/{$this->id}",
            [
                'channel_id' => $channel,
            ]
        )->then(function () use ($deferred) {
            $deferred->resolve();
        }, \React\Partial\bind_right($this->reject, $deferred));

        // At the moment we are unable to check if the member
        // was moved successfully.

        return $deferred->promise();
    }
public function moveMember ( $ channel ) { $ deferred = new Deferred ( ) ; if ( $ channel instanceof Channel ) { $ channel = $ channel -> id ; } $ this -> http -> patch ( "guilds/{$this->guild_id}/members/{$this->id}" , [ 'channel_id' => $ channel , ] ) -> then ( function ( ) use ( $ deferred ) { $ deferred -> resolve ( ) ; } , \ React \ Partial \ bind_right ( $ this -> reject , $ deferred ) ) ; // At the moment we are unable to check if the member // was moved successfully. return $ deferred -> promise ( ) ; }
Moves the member to another voice channel.

@param Channel|int $channel The channel to move the member to.

@return \React\Promise\Promise
Moves the member to another voice channel .