decord/source/modules/guests/GuestUtils.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

42 lines
1.2 KiB
TypeScript

// Module ID: 11465
// Function ID: 11466
// Name: GuestUtils
// Dependencies: [4265, 1385, 8541, 2]
// Module 11465 (GuestUtils)
import FlagUtils from "FlagUtils" /* 1385 */;
import GuildMemberConstants from "GuildMemberConstants" /* 4265 */;
import size from "module_2" /* 2 */;
const GuildMemberFlags = GuildMemberConstants.GuildMemberFlags;
const result = size.fileFinishedImporting("modules/guests/GuestUtils.tsx");
export default {
canAcceptInvite(items, guild) {
[obj] = items;
guild = guild.guild;
let tmp = null == guild;
if (!tmp) {
const selfMember = obj.getSelfMember(guild.id);
let num;
if (selfMember != null) {
num = selfMember.flags;
}
if (num == null) {
num = 0;
}
const hasFlagResult = FlagUtils.hasFlag(num, GuildMemberFlags.IS_GUEST);
let hasFlagResult1 = !hasFlagResult;
if (hasFlagResult) {
let num2 = guild.flags;
if (num2 == null) {
num2 = 0;
}
hasFlagResult1 = tmp2(1385).hasFlag(num2, tmp2(8541).GuildInviteFlags.IS_GUEST_INVITE);
const tmp2Result = tmp2(1385);
}
tmp = hasFlagResult1;
}
return tmp;
}
};