public function afterConstruct()
    {
        $this->user = $this->factory->create(User::class,
            [
                'id'            => $this->id,
                'username'      => $this->username,
                'avatar'        => $this->attributes['avatar'],
                'discriminator' => $this->discriminator,
            ], true
        );
        $this->application = $this->factory->create(Application::class, [], true);

        $this->http->get('oauth2/applications/@me')->then(function ($response) {
            $this->application->fill((array) $response);
        });
    }
public function afterConstruct()
    {
        $this->user = $this->factory->create(User::class,
            [
                'id'            => $this->id,
                'username'      => $this->username,
                'avatar'        => $this->attributes['avatar'],
                'discriminator' => $this->discriminator,
            ], true
        );
        $this->application = $this->factory->create(Application::class, [], true);

        $this->http->get('oauth2/applications/@me')->then(function ($response) {
            $this->application->fill((array) $response);
        });
    }
public function afterConstruct ( ) { $ this -> user = $ this -> factory -> create ( User :: class , [ 'id' => $ this -> id , 'username' => $ this -> username , 'avatar' => $ this -> attributes [ 'avatar' ] , 'discriminator' => $ this -> discriminator , ] , true ) ; $ this -> application = $ this -> factory -> create ( Application :: class , [ ] , true ) ; $ this -> http -> get ( 'oauth2/applications/@me' ) -> then ( function ( $ response ) { $ this -> application -> fill ( ( array ) $ response ) ; } ) ; }
Runs any extra construction tasks.

@return void
Runs any extra construction tasks .