code: function setRank (jar, xcsrf, group, target, role) {
    var httpOpt = {
      url: '//www.roblox.com/groups/api/change-member-rank?groupId=' + group + '&newRoleSetId=' + role.ID + '&targetUserId=' + target,
      options: {
        resolveWithFullResponse: true,
        method: 'POST',
        jar: jar,
        headers: {
          'X-CSRF-TOKEN': xcsrf
        }
      }
    };
    return http(httpOpt)
    .then(function (res) {
      if (res.statusCode === 200) {
        var success = JSON.parse(res.body).success;
        if (success) {
          return role;
        } else {
          throw new Error('Invalid permissions, make sure the user is in the group and is allowed to change the rank of target');
        }
      } else {
        throw new Error('Internal error, make sure the change rank request is valid');
      }
    });
  }
docs: Define