decord/source/errors/AppliedGuildBoostError.tsx

29 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 4097
// Function ID: 4098
2026-07-29 08:29:29 +00:00
// Name: _getMessageFromRateLimit
2026-07-31 08:44:05 +00:00
// Dependencies: [3862, 3863, 687, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
// Module 4097 (_getMessageFromRateLimit)
2026-07-29 08:29:29 +00:00
import "prototype";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
class AppliedGuildBoostError extends tmp2 {
constructor(arg0, arg1) {
tmp = new tmp(global, arg1, new.target, tmp);
// ThrowIfThisInitialized (0x7c)
if (429 === tmp.status) {
tmp.message = tmp._getMessageFromRateLimit(global);
}
return tmp;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
AppliedGuildBoostError.prototype["_getMessageFromRateLimit"] = function _getMessageFromRateLimit(body) {
2026-07-31 08:44:05 +00:00
let obj = require(3863) /* resetCache */;
2026-07-29 08:29:29 +00:00
const diffAsUnitsResult = obj.diffAsUnits(0, body.body.retry_after * importDefault(687).Millis.SECOND);
obj = { days: require(1236) /* getSystemLocale */.t["iXc/Ib"], hours: require(1236) /* getSystemLocale */.t.WW9P57, minutes: require(1236) /* getSystemLocale */.t.I7rYev };
2026-07-31 08:44:05 +00:00
return require(3863) /* resetCache */.unitsAsStrings(diffAsUnitsResult, obj);
2026-07-29 08:29:29 +00:00
};
const result = require("set").fileFinishedImporting("errors/AppliedGuildBoostError.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default AppliedGuildBoostError;