decord/source/modules/guild_communication_disabled/CommunicationDisabledUtils.tsx

38 lines
1,005 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4013
// Function ID: 4014
2026-07-20 16:05:17 +00:00
// Name: isCommunicationDisabled
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-29 08:29:29 +00:00
// Exports: isCommunicationDisabled, isMemberCommunicationDisabled
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 4013 (isCommunicationDisabled)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/guild_communication_disabled/CommunicationDisabledUtils.tsx");
2026-07-29 08:29:29 +00:00
export const isCommunicationDisabled = function isCommunicationDisabled(arg0) {
2026-07-20 16:05:17 +00:00
let tmp = null != arg0;
if (tmp) {
const _Date = Date;
const date = new Date(arg0);
const _Date2 = Date;
const date1 = new Date();
tmp = date > date1;
}
return tmp;
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const isMemberCommunicationDisabled = function isMemberCommunicationDisabled(member) {
let prop;
2026-07-29 08:29:29 +00:00
if (member != null) {
2026-07-20 16:05:17 +00:00
prop = member.communicationDisabledUntil;
}
2026-07-29 08:29:29 +00:00
let tmp2 = null != prop;
if (tmp2) {
const _Date = Date;
const date = new Date(prop);
const _Date2 = Date;
const date1 = new Date();
tmp2 = date > date1;
}
return tmp2;
2026-07-20 16:05:17 +00:00
};