2026-08-14 17:33:39 +00:00
|
|
|
// Module ID: 4827
|
|
|
|
|
// Function ID: 4828
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getChannelIcon
|
2026-08-14 17:33:39 +00:00
|
|
|
// Dependencies: [1990, 1910, 1922, 676, 4828, 4829, 4830, 4831, 4832, 4833, 4834, 4835, 4836, 4837, 4838, 4839, 4840, 4841, 4842, 4843, 4844, 4845, 4846, 4847, 4848, 4849, 4850, 4851, 4852, 4853, 4856, 4857, 4858, 4859, 4860, 4861, 4862, 4863, 4864, 4865, 4866, 4867, 4868, 4869, 4870, 4871, 4872, 4873, 4874, 4875, 4876, 4877, 4878, 4879, 4880, 4881, 4882, 4883, 4884, 4885, 4886, 4887, 4888, 4889, 4890, 4891, 4892, 4893, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: getChannelIconComponentWithGuild, getChannelIconWithGuild, getChannelMentionIcon, getSimpleChannelIcon, getSimpleChannelIconComponent, getThreadChannelIcon
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-14 17:33:39 +00:00
|
|
|
// Module 4827 (getChannelIcon)
|
2026-07-29 08:29:29 +00:00
|
|
|
import trackCommunicationDisabled from "trackCommunicationDisabled";
|
|
|
|
|
import createGuildRecordFromRust from "createGuildRecordFromRust";
|
|
|
|
|
import mergeGuildAvatar from "mergeGuildAvatar";
|
2026-07-23 10:11:24 +00:00
|
|
|
import { ChannelTypes } from "ME";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
function getChannelIcon(channel, ignoreTraits) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let isRulesChannel;
|
|
|
|
|
let locked;
|
|
|
|
|
let obj = ignoreTraits;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (ignoreTraits == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = {};
|
|
|
|
|
}
|
|
|
|
|
({ isRulesChannel, locked } = obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [createGuildRecordFromRust, mergeGuildAvatar, trackCommunicationDisabled];
|
2026-08-14 17:33:39 +00:00
|
|
|
const result = require(4853) /* shouldShowMembershipVerificationGate */.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4846);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
const type = channel.type;
|
|
|
|
|
if (ChannelTypes.PRIVATE_THREAD === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp4 = importDefault(4828);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp4 = importDefault(4829);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp4 = null;
|
|
|
|
|
}
|
|
|
|
|
if (null != tmp4) {
|
|
|
|
|
return tmp4;
|
|
|
|
|
} else {
|
|
|
|
|
const isMediaChannelResult = channel.isMediaChannel();
|
|
|
|
|
const isNSFWResult = channel.isNSFW();
|
|
|
|
|
const type3 = channel.type;
|
|
|
|
|
if (tmp3.PRIVATE_THREAD !== type3) {
|
|
|
|
|
if (tmp3.ANNOUNCEMENT_THREAD !== type3) {
|
|
|
|
|
if (tmp3.PUBLIC_THREAD !== type3) {
|
|
|
|
|
if (tmp3.GUILD_CATEGORY === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4830);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_TEXT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp69 = importDefault(4856);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
ignoreTraits = undefined;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp69 = importDefault(4842);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits1;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits1 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits1) {
|
2026-08-14 17:33:39 +00:00
|
|
|
importDefault(4843);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits2;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits2 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits2) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp72Result = tmp72(4852);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp72Result = tmp72(4858);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp72Result = tmp72(4831);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp69;
|
|
|
|
|
} else if (tmp3.GUILD_FORUM === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp58 = importDefault(4856);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits3;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits3 = ignoreTraits.ignoreTraits;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!ignoreTraits3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp58 = importDefault(isMediaChannelResult ? 4851 : 4848);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits4;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits4 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits4) {
|
2026-08-14 17:33:39 +00:00
|
|
|
importDefault(4849);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp61(isMediaChannelResult ? 4859 : 4860);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
importDefault(isMediaChannelResult ? 4850 : 4847);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp58;
|
|
|
|
|
} else if (tmp3.GUILD_MEDIA === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp48 = importDefault(4856);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits6;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits6 = ignoreTraits.ignoreTraits;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!ignoreTraits6) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp48 = importDefault(4851);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-14 17:33:39 +00:00
|
|
|
importDefault(4849);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp51Result = tmp51(4859);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp51Result = tmp51(4850);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp48;
|
|
|
|
|
} else if (tmp3.GROUP_DM === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4832);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp3.DM === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4833);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_ANNOUNCEMENT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp35 = importDefault(4856);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp35 = importDefault(4844);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-14 17:33:39 +00:00
|
|
|
importDefault(4845);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp38Result = tmp38(4861);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp38Result = tmp38(4834);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp35;
|
|
|
|
|
} else if (tmp3.GUILD_STAGE_VOICE === type3) {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits12;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits12 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits12) {
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
|
|
|
|
let tmp24Result = tmp24(4862);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp24Result = tmp24(4841);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp24Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (locked) {
|
|
|
|
|
let ignoreTraits13;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits13 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits13) {
|
2026-08-14 17:33:39 +00:00
|
|
|
importDefault(4862);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp28Result = tmp28(4841);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp28Result = tmp28(4835);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_VOICE === type3) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp9Result = importDefault(4846);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
|
|
|
|
tmp9Result = tmp9(4862);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp9Result = tmp9(4838);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (locked) {
|
|
|
|
|
let ignoreTraits16;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits16 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits16) {
|
2026-08-14 17:33:39 +00:00
|
|
|
importDefault(4862);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp13(4838);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp13(4839);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp13Result1 = tmp13(4840);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp13Result1 = tmp13(4836);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp9Result;
|
|
|
|
|
} else if (tmp3.GUILD_DIRECTORY === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4837);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const type2 = channel.type;
|
|
|
|
|
if (tmp3.PRIVATE_THREAD === type2) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp80 = importDefault(4828);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp80 = importDefault(4829);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
tmp80 = null;
|
|
|
|
|
}
|
|
|
|
|
return tmp80;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
const obj2 = require(4853) /* shouldShowMembershipVerificationGate */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function getChannelIconComponent(channel, ignoreTraits) {
|
|
|
|
|
let isRulesChannel;
|
|
|
|
|
let locked;
|
|
|
|
|
let obj = ignoreTraits;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (ignoreTraits == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = {};
|
|
|
|
|
}
|
|
|
|
|
({ isRulesChannel, locked } = obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [createGuildRecordFromRust, mergeGuildAvatar, trackCommunicationDisabled];
|
2026-08-14 17:33:39 +00:00
|
|
|
const result = require(4853) /* shouldShowMembershipVerificationGate */.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return tmp(4863).ChatIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
const isMediaChannelResult = channel.isMediaChannel();
|
|
|
|
|
const isNSFWResult = channel.isNSFW();
|
|
|
|
|
const type = channel.type;
|
|
|
|
|
if (ChannelTypes.PRIVATE_THREAD === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return tmp(4864).ThreadLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp6.ANNOUNCEMENT_THREAD !== type) {
|
|
|
|
|
if (tmp6.PUBLIC_THREAD !== type) {
|
|
|
|
|
if (tmp6.GUILD_CATEGORY === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return tmp(4866).FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_TEXT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let TextWarningIcon = tmp(4867).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
ignoreTraits = undefined;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits = ignoreTraits.ignoreTraits;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!ignoreTraits) {
|
2026-08-14 17:33:39 +00:00
|
|
|
TextWarningIcon = tmp(4868).TextWarningIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits1;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits1 = ignoreTraits.ignoreTraits;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!ignoreTraits1) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const TextSpoilerIcon = tmp(4869).TextSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits2;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits2 = ignoreTraits.ignoreTraits;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!ignoreTraits2) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const TextLockIcon = tmp(4870).TextLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let TextIcon = tmp(4871).TextControllerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
TextIcon = tmp(4872).TextIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return TextWarningIcon;
|
|
|
|
|
} else if (tmp6.GUILD_FORUM === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let ForumWarningIcon = tmp(4867).BookCheckIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits3;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits3 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits3) {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isMediaChannelResult) {
|
2026-08-14 17:33:39 +00:00
|
|
|
ForumWarningIcon = tmp(4873).ImageWarningIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
ForumWarningIcon = tmp(4874).ForumWarningIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits4;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits4 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits4) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const ForumSpoilerIcon2 = tmp(4875).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let ForumLockIcon = tmp(4876).ImageLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
ForumLockIcon = tmp(4877).ForumLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let ForumIcon = tmp(4878).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
ForumIcon = tmp(4879).ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ForumWarningIcon;
|
|
|
|
|
} else if (tmp6.GUILD_MEDIA === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let ImageWarningIcon = tmp(4867).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits6;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits6 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits6) {
|
2026-08-14 17:33:39 +00:00
|
|
|
ImageWarningIcon = tmp(4873).ImageWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const ForumSpoilerIcon = tmp(4875).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let ImageIcon = tmp(4876).ImageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
ImageIcon = tmp(4878).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return ImageWarningIcon;
|
|
|
|
|
} else if (tmp6.GROUP_DM === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return tmp(4880).GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.DM === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return tmp(4881).AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_ANNOUNCEMENT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let AnnouncementsWarningIcon = tmp(4867).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-14 17:33:39 +00:00
|
|
|
AnnouncementsWarningIcon = tmp(4882).AnnouncementsWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const AnnouncementsSpoilerIcon = tmp(4883).AnnouncementsSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let AnnouncementsIcon = tmp(4884).AnnouncementsLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
AnnouncementsIcon = tmp(4885).AnnouncementsIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return AnnouncementsWarningIcon;
|
|
|
|
|
} else if (tmp6.GUILD_STAGE_VOICE === type) {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits12;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits12 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits12) {
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
|
|
|
|
let StageLockIcon = tmp(4886).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
StageLockIcon = tmp(4887).StageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return StageLockIcon;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (locked) {
|
|
|
|
|
let ignoreTraits13;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits13 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits13) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const LockIcon2 = tmp(4886).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let StageIcon = tmp(4887).StageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
StageIcon = tmp(4888).StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_VOICE === type) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let VoiceLockIcon = tmp(4863).ChatIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
|
|
|
|
VoiceLockIcon = tmp(4886).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
VoiceLockIcon = tmp(4889).VoiceLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (locked) {
|
|
|
|
|
let ignoreTraits16;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits16 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits16) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const LockIcon = tmp(4886).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
if (importDefault(4857)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const VoiceLockIcon2 = tmp(4889).VoiceLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-14 17:33:39 +00:00
|
|
|
const VoiceWarningIcon = tmp(4890).VoiceWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let VoiceNormalIcon = tmp(4891).VoiceNormalSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
VoiceNormalIcon = tmp(4892).VoiceNormalIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return VoiceLockIcon;
|
|
|
|
|
} else if (tmp6.GUILD_DIRECTORY === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return tmp(4893).HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
return tmp(4865).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
const obj2 = require(4853) /* shouldShowMembershipVerificationGate */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let result = require("mergeGuildAvatar").fileFinishedImporting("utils/native/ChannelUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const getThreadChannelIcon = function getThreadChannelIcon(arg0) {
|
|
|
|
|
if (ChannelTypes.PRIVATE_THREAD === arg0) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4828);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (tmp.ANNOUNCEMENT_THREAD !== arg0) {
|
|
|
|
|
if (tmp.PUBLIC_THREAD !== arg0) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4829);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export const getSimpleChannelIcon = function getSimpleChannelIcon(channel) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const type = channel.type;
|
|
|
|
|
if (ChannelTypes.PRIVATE_THREAD === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp2 = importDefault(4828);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp2 = importDefault(4829);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp2 = null;
|
|
|
|
|
}
|
|
|
|
|
if (null != tmp2) {
|
|
|
|
|
return tmp2;
|
|
|
|
|
} else {
|
|
|
|
|
const type3 = channel.type;
|
|
|
|
|
if (tmp.PRIVATE_THREAD !== type3) {
|
|
|
|
|
if (tmp.ANNOUNCEMENT_THREAD !== type3) {
|
|
|
|
|
if (tmp.PUBLIC_THREAD !== type3) {
|
|
|
|
|
if (tmp.GUILD_CATEGORY === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4830);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp.GUILD_TEXT !== type3) {
|
|
|
|
|
if (tmp.GUILD_FORUM !== type3) {
|
|
|
|
|
if (tmp.GUILD_MEDIA !== type3) {
|
|
|
|
|
if (tmp.GROUP_DM === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4832);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.DM === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4833);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4834);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4835);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4836);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4837);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4831);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const type2 = channel.type;
|
|
|
|
|
if (tmp.PRIVATE_THREAD === type2) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp23 = importDefault(4828);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-14 17:33:39 +00:00
|
|
|
tmp23 = importDefault(4829);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
tmp23 = null;
|
|
|
|
|
}
|
|
|
|
|
return tmp23;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const getChannelIconWithGuild = function getChannelIconWithGuild(channel, guild) {
|
|
|
|
|
let rulesChannelId;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (guild != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
rulesChannelId = guild.rulesChannelId;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return getChannelIcon(channel, { isRulesChannel: rulesChannelId === channel.id });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const getChannelMentionIcon = function getChannelMentionIcon(iconType) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return importDefault(4852);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export { getChannelIcon };
|
|
|
|
|
export const getChannelIconComponentWithGuild = function getChannelIconComponentWithGuild(channel, guild) {
|
|
|
|
|
let rulesChannelId;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (guild != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
rulesChannelId = guild.rulesChannelId;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return getChannelIconComponent(channel, { isRulesChannel: rulesChannelId === channel.id });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export { getChannelIconComponent };
|
|
|
|
|
export const getSimpleChannelIconComponent = function getSimpleChannelIconComponent(channel) {
|
|
|
|
|
const type = channel.type;
|
|
|
|
|
if (ChannelTypes.PRIVATE_THREAD !== type) {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp.ANNOUNCEMENT_THREAD !== type) {
|
|
|
|
|
if (tmp.PUBLIC_THREAD !== type) {
|
|
|
|
|
if (tmp.GUILD_CATEGORY === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4866) /* FolderIcon */.FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_TEXT === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4872) /* TextIcon */.TextIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_FORUM === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4879) /* ForumIcon */.ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_MEDIA === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4878) /* ImageIcon */.ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GROUP_DM === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4880) /* GroupIcon */.GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.DM === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4881) /* AtIcon */.AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4885) /* AnnouncementsIcon */.AnnouncementsIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4888) /* StageIcon */.StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4892) /* VoiceNormalIcon */.VoiceNormalIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type) {
|
2026-08-14 17:33:39 +00:00
|
|
|
return require(4893) /* HubIcon */.HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isForumPost()) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let ThreadIcon = tmp23(4863).ChatIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-14 17:33:39 +00:00
|
|
|
ThreadIcon = tmp23(4865).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return ThreadIcon;
|
|
|
|
|
};
|