27 lines
979 B
TypeScript
27 lines
979 B
TypeScript
// Module ID: 7540
|
|
// Function ID: 7541
|
|
// Name: maybeConvertPrivateChannel
|
|
// Dependencies: [1391, 5394, 4775, 2]
|
|
// Exports: default
|
|
|
|
// Module 7540 (maybeConvertPrivateChannel)
|
|
import _modDef4775 from "module_4775" /* 4775 */;
|
|
import FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID from "FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID" /* 5394 */;
|
|
import closure_3 from "ensureGuildLoaded" /* 1391 */;
|
|
|
|
require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/private_channel_creation/maybeConvertPrivateChannel.tsx");
|
|
|
|
export default function maybeConvertPrivateChannel(arg0) {
|
|
if (arg0 !== FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
|
|
return null;
|
|
} else {
|
|
channel = channel.getChannel(arg0);
|
|
let ensurePrivateChannelResult = null;
|
|
if (null != channel) {
|
|
ensurePrivateChannelResult = _modDef4775.ensurePrivateChannel(channel.recipients);
|
|
const obj = _modDef4775;
|
|
}
|
|
return ensurePrivateChannelResult;
|
|
}
|
|
};
|