public function getUserAttribute()
    {
        if ($this->discord->users->has($this->attributes['user']->id)) {
            return $this->discord->users->get($this->attributes['user']->id);
        }

        return $this->factory->create(User::class, (array) $this->attributes['user'], true);
    }
public function getUserAttribute()
    {
        if ($this->discord->users->has($this->attributes['user']->id)) {
            return $this->discord->users->get($this->attributes['user']->id);
        }

        return $this->factory->create(User::class, (array) $this->attributes['user'], true);
    }
public function getUserAttribute ( ) { if ( $ this -> discord -> users -> has ( $ this -> attributes [ 'user' ] -> id ) ) { return $ this -> discord -> users -> get ( $ this -> attributes [ 'user' ] -> id ) ; } return $ this -> factory -> create ( User :: class , ( array ) $ this -> attributes [ 'user' ] , true ) ; }
Gets the user attribute.

@return User The user that had their presence updated.
Gets the user attribute .