decord/source/modules/guild_onboarding_home/hasPendingMemberAction.tsx
2026-08-05 07:35:12 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 4455
// Function ID: 4456
// Name: hasPendingMemberAction
// Dependencies: [1372, 1942, 1862, 4456, 4457, 676, 3871, 4458, 1384, 2]
// Exports: hasPendingMemberAction
// Module 4455 (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(4458)(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(1384).hasFlag(num, GuildMemberFlags.COMPLETED_HOME_ACTIONS);
const obj = importAll(1384);
}
if (hasItem) {
hasItem = handleSettingsLoadSuccess.hasMemberAction(guild.id, channel.id);
}
if (hasItem) {
hasItem = !set.hasCompletedActionForChannel(guild.id, channel.id);
}
return hasItem;
};