decord/source/utils/SnowflakeUtils.tsx

71 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 11
// Function ID: 12
2026-07-20 16:05:17 +00:00
// Name: DISCORD_EPOCH
2026-07-29 08:29:29 +00:00
// Dependencies: [12, 13, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 11 (DISCORD_EPOCH)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import applyDefault from "apply" /* 12 */;
import extractTimestamp from "extractTimestamp" /* 13 */;
import extractTimestampAll from "extractTimestamp" /* 13 */;
const result = set.fileFinishedImporting("utils/SnowflakeUtils.tsx");
2026-07-20 16:05:17 +00:00
export default {
age(arg0) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.age(arg0);
2026-07-20 16:05:17 +00:00
},
extractTimestamp(arg0) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.extractTimestamp(arg0);
2026-07-20 16:05:17 +00:00
},
compare(arg0, arg1) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.compare(arg0, arg1);
2026-07-20 16:05:17 +00:00
},
atPreviousMillisecond(arg0) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.atPreviousMillisecond(arg0);
2026-07-20 16:05:17 +00:00
},
atNextMillisecond(arg0) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.atNextMillisecond(arg0);
2026-07-20 16:05:17 +00:00
},
fromTimestamp(arg0) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.fromTimestamp(arg0);
2026-07-20 16:05:17 +00:00
},
fromTimestampWithSequence(arg0, arg1) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.fromTimestampWithSequence(arg0, arg1);
2026-07-20 16:05:17 +00:00
},
keys(arg0) {
return Object.keys(arg0);
},
forEach(arg0, arg1) {
2026-08-24 06:08:38 +00:00
importDefault = arg1;
const item = applyDefault.forEach(arg0, (arg0, arg1) => callback(arg0, arg1));
2026-07-20 16:05:17 +00:00
},
forEachKey(recurrenceCounts, arg1) {
for (const key10004 in arg0) {
let tmp = key10004;
let tmp2 = arg1(key10004);
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
},
entries(arg0) {
return Object.entries(arg0);
},
isProbablyAValidSnowflake(arg0) {
2026-08-24 06:08:38 +00:00
return extractTimestampAll.isProbablyAValidSnowflake(arg0);
2026-07-20 16:05:17 +00:00
},
castChannelIdAsMessageId(id) {
return id;
},
castMessageIdAsChannelId(id) {
return id;
},
castGuildIdAsEveryoneGuildRoleId(guildId) {
return guildId;
},
cast(id) {
return id;
}
};
2026-08-24 06:08:38 +00:00
export const DISCORD_EPOCH = extractTimestamp.DISCORD_EPOCH;
export const SnowflakeSequence = extractTimestamp.SnowflakeSequence;