@twurple/api
Version:
Interact with Twitch's API.
34 lines (33 loc) • 892 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiReportedRequest = void 0;
/**
* Reporting details for an API request.
*/
class ApiReportedRequest {
/** @internal */
constructor(_options, _httpStatus, _resolvedUserId) {
this._options = _options;
this._httpStatus = _httpStatus;
this._resolvedUserId = _resolvedUserId;
}
/**
* The options used to call the API.
*/
get options() {
return this._options;
}
/**
* The HTTP status code returned by Twitch for the request.
*/
get httpStatus() {
return this._httpStatus;
}
/**
* The ID of the user that was used for authentication, or `null` if an app access token was used.
*/
get resolvedUserId() {
return this._resolvedUserId;
}
}
exports.ApiReportedRequest = ApiReportedRequest;