2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 4693
|
|
|
|
|
// Function ID: 4694
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: AppliedGuildBoostError
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [4469, 4470, 1091, 1115, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 4693 (AppliedGuildBoostError)
|
|
|
|
|
import DurationsDefault from "Durations" /* 1091 */;
|
|
|
|
|
import util from "util" /* 1115 */;
|
|
|
|
|
import DateUtils from "DateUtils" /* 4470 */;
|
|
|
|
|
import V6OrEarlierAPIError from "errors/V6OrEarlierAPIError" /* 4469 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
require = fn;
|
|
|
|
|
class AppliedGuildBoostError extends tmp2 {
|
|
|
|
|
constructor(arg0, arg1) {
|
|
|
|
|
tmp1 = new tmp(global, fn, new.target, tmp);
|
|
|
|
|
if (429 === tmp1.status) {
|
|
|
|
|
tmp1.message = tmp1._getMessageFromRateLimit(global);
|
|
|
|
|
}
|
|
|
|
|
return tmp1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
AppliedGuildBoostError.prototype["_getMessageFromRateLimit"] = function _getMessageFromRateLimit(body) {
|
|
|
|
|
const diffAsUnitsResult = DateUtils.diffAsUnits(0, body.body.retry_after * DurationsDefault.Millis.SECOND);
|
|
|
|
|
const time = { days: util.t["iXc/Ib"], hours: util.t.WW9P57, minutes: util.t.I7rYev };
|
|
|
|
|
return DateUtils.unitsAsStrings(diffAsUnitsResult, time);
|
|
|
|
|
};
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("errors/AppliedGuildBoostError.tsx");
|
|
|
|
|
|
|
|
|
|
export default AppliedGuildBoostError;
|