decord/source/modules/private_channel_creation/maybeConvertPrivateChannel.tsx

28 lines
979 B
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 7509
// Function ID: 7510
2026-07-20 16:05:17 +00:00
// Name: maybeConvertPrivateChannel
2026-09-02 09:53:35 +00:00
// Dependencies: [1386, 6076, 4491, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 7509 (maybeConvertPrivateChannel)
2026-09-01 10:26:29 +00:00
import _modDef4491 from "module_4491" /* 4491 */;
2026-09-02 09:53:35 +00:00
import FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID from "FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID" /* 6076 */;
import closure_3 from "ensureGuildLoaded" /* 1386 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("modules/private_channel_creation/maybeConvertPrivateChannel.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function maybeConvertPrivateChannel(arg0) {
2026-08-24 06:08:38 +00:00
if (arg0 !== FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
2026-07-20 16:05:17 +00:00
return null;
} else {
2026-07-29 08:29:29 +00:00
channel = channel.getChannel(arg0);
2026-07-20 16:05:17 +00:00
let ensurePrivateChannelResult = null;
if (null != channel) {
2026-09-01 10:26:29 +00:00
ensurePrivateChannelResult = _modDef4491.ensurePrivateChannel(channel.recipients);
const obj = _modDef4491;
2026-07-20 16:05:17 +00:00
}
return ensurePrivateChannelResult;
}
};