Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
27 lines
941 B
TypeScript
27 lines
941 B
TypeScript
// Module ID: 9811
|
|
// Function ID: 9812
|
|
// Name: sanitizeChannelName
|
|
// Dependencies: [1094, 7326, 4760, 2]
|
|
// Exports: default
|
|
|
|
// Module 9811 (sanitizeChannelName)
|
|
import ChannelTypes from "ChannelTypes" /* 1094 */;
|
|
import sanitizeGuildTextChannelNameDefault from "sanitizeGuildTextChannelName" /* 4760 */;
|
|
import sanitizeThreadNameDefault from "sanitizeThreadName" /* 7326 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/channel/sanitizeChannelName.tsx");
|
|
|
|
export default function sanitizeChannelName(arg0, arg1) {
|
|
const THREADS = ChannelTypes.ChannelTypesSets.THREADS;
|
|
if (THREADS.has(arg1)) {
|
|
let tmp3 = sanitizeThreadNameDefault(arg0, false);
|
|
} else {
|
|
const LIMITED_CHANNEL_NAME = ChannelTypes.ChannelTypesSets.LIMITED_CHANNEL_NAME;
|
|
tmp3 = arg0;
|
|
if (LIMITED_CHANNEL_NAME.has(arg1)) {
|
|
tmp3 = sanitizeGuildTextChannelNameDefault(arg0);
|
|
}
|
|
}
|
|
return tmp3;
|
|
};
|