decord/source/modules/guild_onboarding_home/hasPendingMemberAction.tsx
2026-08-13 07:00:46 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 4545
// Function ID: 4546
// Name: hasPendingMemberAction
// Dependencies: [1391, 1990, 1910, 4546, 4547, 676, 3977, 4548, 1403, 2]
// Exports: hasPendingMemberAction
// Module 4545 (hasPendingMemberAction)
import ensureGuildLoaded from "ensureGuildLoaded";
import trackCommunicationDisabled from "trackCommunicationDisabled";
import createGuildRecordFromRust from "createGuildRecordFromRust";
import handleSettingsLoadSuccess from "handleSettingsLoadSuccess";
import set from "set";
import { GuildFeatures } from "ME";
import { GuildMemberFlags } from "GuildMemberFlags";
const result = require("createGuildRecordFromRust").fileFinishedImporting("modules/guild_onboarding_home/hasPendingMemberAction.tsx");
export const hasPendingMemberAction = function hasPendingMemberAction(guild_id, selectedChannelId) {
guild = guild.getGuild(guild_id);
channel = channel.getChannel(selectedChannelId);
let hasItem = null != guild && null != channel;
if (hasItem) {
hasItem = importDefault(4548)(guild);
}
if (hasItem) {
const features = guild.features;
hasItem = features.has(GuildFeatures.GUILD_SERVER_GUIDE);
}
if (hasItem) {
selfMember = selfMember.getSelfMember(guild.id);
let num;
if (selfMember != null) {
num = selfMember.flags;
}
if (num == null) {
num = 0;
}
hasItem = !importAll(1403).hasFlag(num, GuildMemberFlags.COMPLETED_HOME_ACTIONS);
const obj = importAll(1403);
}
if (hasItem) {
hasItem = handleSettingsLoadSuccess.hasMemberAction(guild.id, channel.id);
}
if (hasItem) {
hasItem = !set.hasCompletedActionForChannel(guild.id, channel.id);
}
return hasItem;
};