decord/source/errors/AppliedGuildBoostError.tsx

29 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 4093
// Function ID: 4094
// Name: _getMessageFromRateLimit
// Dependencies: [3858, 3859, 687, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 4093 (_getMessageFromRateLimit)
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) {
let obj = require(3859) /* resetCache */;
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 };
return require(3859) /* resetCache */.unitsAsStrings(diffAsUnitsResult, obj);
};
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;