decord/source/records/AppliedGuildBoostRecord.tsx

63 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4276
// Function ID: 4277
2026-07-29 08:29:29 +00:00
// Name: createFromServer
2026-08-11 06:20:06 +00:00
// Dependencies: [1931, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 4276 (createFromServer)
2026-08-24 06:08:38 +00:00
import toJSDefault from "toJS" /* 1931 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
toJSDefault;
2026-07-29 08:29:29 +00:00
let prototype;
prototype = function AppliedGuildBoostRecord(endsAt) {
const tmp = new prototype(new.target, endsAt, new.target);
// ThrowIfThisInitialized (0x7c)
({ id: tmp.id, guildId: tmp.guildId, userId: tmp.userId, user: tmp.user, ended: tmp.ended } = endsAt);
endsAt = null;
if (null != endsAt.endsAt) {
endsAt = endsAt.endsAt;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp.endsAt = endsAt;
return tmp;
}.prototype;
class prototype extends tmp2 {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
prototype["createFromServer"] = function createFromServer(user) {
({ id, guild_id } = user);
if (null != user.user) {
let user_id = user.user.id;
} else {
user_id = user.user_id;
}
user = user.user;
let date = null;
if (null != user.ends_at) {
let _Date = user.ends_at;
let str = "";
date = null;
if ("" !== _Date) {
_Date = Date;
str = new.target;
date = new Date(user.ends_at);
}
}
2026-08-04 21:03:28 +00:00
if (typeof prototype !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
const tmp5 = new prototype(str2, _Date, str, prototype, new.target, id, guild_id, user_id, user);
// ThrowIfThisInitialized (0x7c)
tmp5.id = id;
tmp5.guildId = guild_id;
tmp5.userId = user_id;
tmp5.user = user;
tmp5.ended = user.ended;
let tmp6 = null;
if (null != date) {
tmp6 = date;
}
tmp5.endsAt = tmp6;
return tmp5;
};
const result = require("set").fileFinishedImporting("records/AppliedGuildBoostRecord.tsx");
2026-07-21 22:01:30 +00:00
2026-07-29 08:29:29 +00:00
export default prototype;