decord/alpha/source/records/AppliedGuildBoostRecord.tsx

72 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 8001
// Function ID: 8002
// Name: AppliedGuildBoostRecord
2026-10-08 09:57:35 +00:00
// Dependencies: [1404, 2]
2026-07-23 10:11:24 +00:00
2026-10-08 09:57:35 +00:00
// Module 8001 (AppliedGuildBoostRecord)
import Record from "Record" /* 1404 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
let user;
class AppliedGuildBoostRecord extends Record {
constructor(endsAt) {
const tmp = new AppliedGuildBoostRecord(new.target, endsAt, this);
({ 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-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
tmp.endsAt = endsAt;
return tmp;
2026-07-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
static createFromServer(user) {
let _Date;
let guild_id;
let id;
let self;
let user_id;
({ id, guild_id } = user);
if (null != user.user) {
user_id = user.user.id;
} else {
user_id = user.user_id;
}
user = user.user;
let date = null;
const ended = user.ended;
if (null != user.ends_at) {
_Date = user.ends_at;
self = "";
date = null;
if ("" !== _Date) {
_Date = Date;
self = this;
const self2 = this;
date = new Date(user.ends_at);
}
}
if (typeof AppliedGuildBoostRecord === "function") {
const self3 = this;
const self4 = this;
const tmp6 = new AppliedGuildBoostRecord(tmp4, _Date, self, AppliedGuildBoostRecord, this, id, guild_id, user_id, user);
tmp6.id = id;
tmp6.guildId = guild_id;
tmp6.userId = user_id;
tmp6.user = user;
tmp6.ended = ended;
let tmp8 = null;
if (null != date) {
tmp8 = date;
}
tmp6.endsAt = tmp8;
return tmp6;
} else {
throw new TypeError("Trying to call a non-function");
}
2026-07-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
}
const result = size.fileFinishedImporting("records/AppliedGuildBoostRecord.tsx");
2026-07-21 22:01:30 +00:00
2026-10-03 08:58:59 +00:00
export default AppliedGuildBoostRecord;