decord/source/modules/guild_onboarding/doGuildOnboardingHelpers.tsx

39 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5062
// Function ID: 43858
2026-07-20 16:05:17 +00:00
// Name: waitForOnboardingCompletion
2026-07-23 10:11:24 +00:00
// Dependencies: [1917, 3746, 1360, 5063, 2]
2026-07-20 16:05:17 +00:00
// Exports: waitForOnboardingCompletion
2026-07-23 10:11:24 +00:00
// Module 5062 (waitForOnboardingCompletion)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { GuildMemberFlags } from "GuildMemberFlags";
const require = arg1;
let result = require("hasFlag").fileFinishedImporting("modules/guild_onboarding/doGuildOnboardingHelpers.tsx");
2026-07-20 16:05:17 +00:00
export const waitForOnboardingCompletion = function waitForOnboardingCompletion(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
const result = outer1_3.addConditionalChangeListener(() => {
const selfMember = outer2_3.getSelfMember(callback);
2026-07-20 16:05:17 +00:00
let flags;
if (null != selfMember) {
flags = selfMember.flags;
}
let num = 0;
if (null != flags) {
num = flags;
}
2026-07-23 10:11:24 +00:00
let flag = !callback(outer2_2[2]).hasFlag(num, outer2_4.COMPLETED_ONBOARDING);
2026-07-20 16:05:17 +00:00
if (!flag) {
2026-07-23 10:11:24 +00:00
outer2_1(outer2_2[3]).finishOnboarding(callback);
callback();
2026-07-20 16:05:17 +00:00
flag = false;
2026-07-23 10:11:24 +00:00
const obj2 = outer2_1(outer2_2[3]);
2026-07-20 16:05:17 +00:00
}
return flag;
});
});
};