decord/source/modules/midjourney_onboarding/MidjourneyOnboardingManager.tsx

85 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 17118
// Function ID: 17119
2026-07-29 08:29:29 +00:00
// Name: handleChannelCreate
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 13378, 676, 5043, 13377, 7249, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 17118 (handleChannelCreate)
import initializeDefault from "initialize" /* 5043 */;
import closure_3 from "asyncGeneratorStep" /* 5 */;
import { MIDJOURNEY_GUILD_ID } from "MIDJOURNEY_GUILD_ID" /* 13378 */;
import { Routes } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
initializeDefault;
2026-07-29 08:29:29 +00:00
class MidjourneyOnboardingManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.actions = { CHANNEL_CREATE: applyArgumentsResult.handleChannelCreate };
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
MidjourneyOnboardingManager.prototype["handleChannelCreate"] = function handleChannelCreate(channel) {
channel = channel.channel;
return callback(function*() {
if (dependencyMap === 2) {
dependencyMap = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
dependencyMap = 2;
if (0 === v0) {
if (arg0 === 1) {
dependencyMap = 3;
throw arg1;
} else if (arg0 === 2) {
dependencyMap = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const id = tmp2;
2026-08-24 06:08:38 +00:00
if (obj6.isEligibleForMidjourneyRedirect(closure_1_0)) {
2026-07-29 08:29:29 +00:00
v0 = 1;
dependencyMap = 1;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: false };
obj1[0] = tmp22(13377).hasRedirectedToGuild(closure_1_4);
2026-07-29 08:29:29 +00:00
return obj1;
} else {
dependencyMap = 3;
}
2026-08-24 06:08:38 +00:00
obj6 = closure_1_0(13377);
tmp22 = closure_1_0;
2026-07-29 08:29:29 +00:00
}
} else if (arg0 === 1) {
dependencyMap = 3;
throw arg1;
} else if (arg0 !== 2) {
2026-08-24 06:08:38 +00:00
v0(7249)(closure_1_5.CHANNEL(null, id.id));
const tmp9 = v0(7249);
2026-07-29 08:29:29 +00:00
}
dependencyMap = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} catch (tmp16) {
dependencyMap = tmp;
throw tmp16;
}
}
})();
};
const midjourneyOnboardingManager = new MidjourneyOnboardingManager();
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/midjourney_onboarding/MidjourneyOnboardingManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default midjourneyOnboardingManager;