decord/source/lib/InviteQueue.tsx

66 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11938
// Function ID: 11939
2026-07-29 08:29:29 +00:00
// Name: sum
2026-08-24 06:08:38 +00:00
// Dependencies: [1391, 687, 5046, 3, 7465, 4775, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 11938 (sum)
import timestampDefault from "timestamp" /* 3 */;
import setDefault from "set" /* 687 */;
import enqueueDefault from "enqueue" /* 5046 */;
import trackInviteDefault from "trackInvite" /* 7465 */;
import closure_2 from "ensureGuildLoaded" /* 1391 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const sum = setDefault.Millis.SECOND + 10;
2026-07-29 08:29:29 +00:00
let c3 = sum;
let obj = { GROUP_DM: 0, [0]: "GROUP_DM", USER: 1, [1]: "USER", CHANNEL: 2, [2]: "CHANNEL" };
2026-08-24 06:08:38 +00:00
enqueueDefault;
2026-07-29 08:29:29 +00:00
class InviteQueue extends tmp4 {
constructor() {
tmp2 = require("timestamp");
tmp2 = new tmp2("InviteQueue");
2026-08-24 06:08:38 +00:00
tmp = new tmp(tmp2, closure_3, tmp2);
2026-07-29 08:29:29 +00:00
// ThrowIfThisInitialized (0x7c)
return tmp;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const prototype = InviteQueue.prototype;
2026-08-24 06:08:38 +00:00
prototype["_sendInvite"] = function _sendInvite(channel, inviteKey, _location, inviteAnalyticsMetadata, closure_2) {
importDefault = closure_2;
obj = trackInviteDefault;
trackInviteDefault.sendInvite(channel.id, inviteKey, _location, inviteAnalyticsMetadata).then(() => callback(null, true), () => callback(null, false));
2026-07-29 08:29:29 +00:00
};
function drain(location, sum, arg2, prototype, arg4, InviteQueue, drain, dependencyMap, arg8) {
let self = this;
self = this;
dependencyMap = location;
2026-08-24 06:08:38 +00:00
closure_2 = sum;
2026-07-29 08:29:29 +00:00
const _location = location.location;
const inviteAnalyticsMetadata = location.inviteAnalyticsMetadata;
const type = location.type;
if (self.GROUP_DM !== type) {
if (tmp.CHANNEL !== type) {
if (tmp.USER === type) {
2026-08-24 06:08:38 +00:00
obj = inviteAnalyticsMetadata(4775);
inviteAnalyticsMetadata(4775).ensurePrivateChannel(location.user.id).then((arg0) => {
2026-07-29 08:29:29 +00:00
const channel = sum.getChannel(arg0);
if (null != channel) {
self._sendInvite(channel, _location.inviteKey, _location, inviteAnalyticsMetadata, sum);
} else {
sum(null, false);
}
}, () => sum(null, false));
2026-08-24 06:08:38 +00:00
const ensurePrivateChannelResult = inviteAnalyticsMetadata(4775).ensurePrivateChannel(location.user.id);
2026-07-29 08:29:29 +00:00
}
}
}
self._sendInvite(location.channel, location.inviteKey, _location, inviteAnalyticsMetadata, sum);
}
prototype["drain"] = drain;
2026-08-24 06:08:38 +00:00
drain = new drain(new timestampDefault("InviteQueue"), sum, tmp, prototype, new.target, InviteQueue, drain, dependencyMap, new.target);
2026-07-29 08:29:29 +00:00
// ThrowIfThisInitialized (0x7c)
2026-08-24 06:08:38 +00:00
const tmp5 = new timestampDefault("InviteQueue");
const result = require("set").fileFinishedImporting("lib/InviteQueue.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default drain;
2026-07-20 16:05:17 +00:00
export const InvitePropertiesType = obj;