2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 7699
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 61534
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getUserGuildMember
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [1918, 1850, 566, 3748, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useCurrentUserCommunicationDisabled, userCommunicationDisabled
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 7699 (getUserGuildMember)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import closure_3 from "_isNativeReflectConstruct";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
function getUserGuildMember(id, guildId, _isNativeReflectConstruct) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let member = null;
|
|
|
|
|
if (null != guildId) {
|
|
|
|
|
member = null;
|
|
|
|
|
if (null != id) {
|
2026-07-23 10:11:24 +00:00
|
|
|
member = _isNativeReflectConstruct.getMember(guildId, id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return member;
|
|
|
|
|
}
|
|
|
|
|
function isCommunicationDisabled(communicationDisabledUntil) {
|
|
|
|
|
let prop;
|
|
|
|
|
if (null != communicationDisabledUntil) {
|
|
|
|
|
prop = communicationDisabledUntil.communicationDisabledUntil;
|
|
|
|
|
}
|
|
|
|
|
let tmp2 = null;
|
|
|
|
|
if (null != prop) {
|
|
|
|
|
tmp2 = prop;
|
|
|
|
|
}
|
2026-07-25 08:10:48 +00:00
|
|
|
const items = [tmp2, require(3748) /* isCommunicationDisabled */.isMemberCommunicationDisabled(communicationDisabledUntil)];
|
2026-07-20 16:05:17 +00:00
|
|
|
return items;
|
|
|
|
|
}
|
|
|
|
|
function useUserCommunicationDisabled(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = arg0;
|
2026-07-20 16:05:17 +00:00
|
|
|
const dependencyMap = arg1;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [_isNativeReflectConstruct];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [arg1, arg0];
|
2026-07-23 10:11:24 +00:00
|
|
|
return isCommunicationDisabled(_require(566).useStateFromStores(items, () => outer1_4(closure_0, closure_1, outer1_2), items1));
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("initialize").fileFinishedImporting("modules/guild_communication_disabled/useUserCommunicationDisabled.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default useUserCommunicationDisabled;
|
|
|
|
|
export const useCurrentUserCommunicationDisabled = function useCurrentUserCommunicationDisabled(guild_id) {
|
|
|
|
|
const items = [closure_3];
|
2026-07-23 10:11:24 +00:00
|
|
|
const stateFromStores = require(566) /* initialize */.useStateFromStores(items, () => outer1_3.getCurrentUser());
|
2026-07-20 16:05:17 +00:00
|
|
|
let id;
|
|
|
|
|
if (null != stateFromStores) {
|
|
|
|
|
id = stateFromStores.id;
|
|
|
|
|
}
|
|
|
|
|
return useUserCommunicationDisabled(id, guild_id);
|
|
|
|
|
};
|
|
|
|
|
export const userCommunicationDisabled = function userCommunicationDisabled(id, guildId) {
|
2026-07-23 10:11:24 +00:00
|
|
|
return isCommunicationDisabled(getUserGuildMember(id, guildId, _isNativeReflectConstruct));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|