2026-08-26 06:04:24 +00:00
|
|
|
// Module ID: 4932
|
|
|
|
|
// Function ID: 4933
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getChannelIcon
|
2026-08-26 06:04:24 +00:00
|
|
|
// Dependencies: [1992, 1910, 1922, 676, 4933, 4934, 4935, 4936, 4937, 4938, 4939, 4940, 4941, 4942, 4943, 4944, 4945, 4946, 4947, 4948, 4949, 4950, 4951, 4952, 4953, 4954, 4955, 4956, 4957, 4958, 4961, 4962, 4963, 4964, 4965, 4966, 4967, 4968, 4969, 4970, 4971, 4972, 4973, 4974, 4975, 4976, 4977, 4978, 4979, 4980, 4981, 4982, 4983, 4984, 4985, 4986, 4987, 4988, 4989, 4990, 4991, 4992, 4993, 4994, 4995, 4996, 4997, 4998, 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-26 06:04:24 +00:00
|
|
|
// Module 4932 (getChannelIcon)
|
|
|
|
|
import registerAssetDefault from "registerAsset" /* 4933 */;
|
|
|
|
|
import registerAssetDefault2 from "registerAsset" /* 4934 */;
|
|
|
|
|
import registerAssetDefault3 from "registerAsset" /* 4935 */;
|
|
|
|
|
import registerAssetDefault4 from "registerAsset" /* 4936 */;
|
|
|
|
|
import registerAssetDefault5 from "registerAsset" /* 4937 */;
|
|
|
|
|
import registerAssetDefault6 from "registerAsset" /* 4938 */;
|
|
|
|
|
import registerAssetDefault7 from "registerAsset" /* 4939 */;
|
|
|
|
|
import registerAssetDefault8 from "registerAsset" /* 4940 */;
|
|
|
|
|
import registerAssetDefault9 from "registerAsset" /* 4941 */;
|
|
|
|
|
import registerAssetDefault10 from "registerAsset" /* 4942 */;
|
|
|
|
|
import registerAssetDefault11 from "registerAsset" /* 4947 */;
|
|
|
|
|
import registerAssetDefault12 from "registerAsset" /* 4948 */;
|
|
|
|
|
import registerAssetDefault13 from "registerAsset" /* 4949 */;
|
|
|
|
|
import registerAssetDefault14 from "registerAsset" /* 4950 */;
|
|
|
|
|
import registerAssetDefault15 from "registerAsset" /* 4951 */;
|
|
|
|
|
import registerAssetDefault16 from "registerAsset" /* 4954 */;
|
|
|
|
|
import registerAssetDefault17 from "registerAsset" /* 4956 */;
|
|
|
|
|
import shouldShowMembershipVerificationGate from "shouldShowMembershipVerificationGate" /* 4958 */;
|
|
|
|
|
import registerAssetDefault18 from "registerAsset" /* 4961 */;
|
|
|
|
|
import isRoleRequiredDefault from "isRoleRequired" /* 4962 */;
|
|
|
|
|
import registerAssetDefault19 from "registerAsset" /* 4967 */;
|
|
|
|
|
import FolderIcon from "FolderIcon" /* 4971 */;
|
|
|
|
|
import TextIcon2 from "TextIcon" /* 4977 */;
|
|
|
|
|
import ImageIcon2 from "ImageIcon" /* 4983 */;
|
|
|
|
|
import ForumIcon2 from "ForumIcon" /* 4984 */;
|
|
|
|
|
import GroupIcon from "GroupIcon" /* 4985 */;
|
|
|
|
|
import AtIcon from "AtIcon" /* 4986 */;
|
|
|
|
|
import AnnouncementsIcon2 from "AnnouncementsIcon" /* 4990 */;
|
|
|
|
|
import StageIcon2 from "StageIcon" /* 4993 */;
|
|
|
|
|
import VoiceNormalIcon2 from "VoiceNormalIcon" /* 4997 */;
|
|
|
|
|
import HubIcon from "HubIcon" /* 4998 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import closure_3 from "trackCommunicationDisabled" /* 1992 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_4 from "createGuildRecordFromRust" /* 1910 */;
|
|
|
|
|
import closure_5 from "mergeGuildAvatar" /* 1922 */;
|
|
|
|
|
import { ChannelTypes } from "ME" /* 676 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
function getChannelIcon(channel, ignoreTraits) {
|
2026-07-20 16:05:17 +00:00
|
|
|
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-08-24 06:08:38 +00:00
|
|
|
const items = [closure_4, closure_5, closure_3];
|
|
|
|
|
const result = shouldShowMembershipVerificationGate.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-26 06:04:24 +00:00
|
|
|
return registerAssetDefault15;
|
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-24 06:08:38 +00:00
|
|
|
let tmp4 = registerAssetDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp4 = registerAssetDefault2;
|
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-24 06:08:38 +00:00
|
|
|
return registerAssetDefault3;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_TEXT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp69 = registerAssetDefault18;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
ignoreTraits = undefined;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits) {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp69 = registerAssetDefault11;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits1;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits1 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits1) {
|
2026-08-26 06:04:24 +00:00
|
|
|
registerAssetDefault12;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits2;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits2 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits2) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp72Result = tmp72(4957);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp72Result = tmp72(4963);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp72Result = tmp72(4936);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp69;
|
|
|
|
|
} else if (tmp3.GUILD_FORUM === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp58 = registerAssetDefault18;
|
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-26 06:04:24 +00:00
|
|
|
tmp58 = importDefault(isMediaChannelResult ? 4956 : 4953);
|
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-26 06:04:24 +00:00
|
|
|
registerAssetDefault16;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp61(isMediaChannelResult ? 4964 : 4965);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
importDefault(isMediaChannelResult ? 4955 : 4952);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp58;
|
|
|
|
|
} else if (tmp3.GUILD_MEDIA === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp48 = registerAssetDefault18;
|
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-26 06:04:24 +00:00
|
|
|
tmp48 = registerAssetDefault17;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-26 06:04:24 +00:00
|
|
|
registerAssetDefault16;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp51Result = tmp51(4964);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp51Result = tmp51(4955);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp48;
|
|
|
|
|
} else if (tmp3.GROUP_DM === type3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault5;
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp3.DM === type3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault6;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_ANNOUNCEMENT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp35 = registerAssetDefault18;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp35 = registerAssetDefault13;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-26 06:04:24 +00:00
|
|
|
registerAssetDefault14;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp38Result = tmp38(4966);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp38Result = tmp38(4939);
|
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-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp24Result = tmp24(4967);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp24Result = tmp24(4946);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp24Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (locked) {
|
|
|
|
|
let ignoreTraits13;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits13 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits13) {
|
2026-08-26 06:04:24 +00:00
|
|
|
registerAssetDefault19;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp28Result = tmp28(4946);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp28Result = tmp28(4940);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_VOICE === type3) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp9Result = registerAssetDefault15;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp9Result = tmp9(4967);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp9Result = tmp9(4943);
|
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-26 06:04:24 +00:00
|
|
|
registerAssetDefault19;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp13(4943);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp13(4944);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let tmp13Result1 = tmp13(4945);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
tmp13Result1 = tmp13(4941);
|
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-24 06:08:38 +00:00
|
|
|
return registerAssetDefault10;
|
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-24 06:08:38 +00:00
|
|
|
let tmp80 = registerAssetDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp80 = registerAssetDefault2;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
tmp80 = null;
|
|
|
|
|
}
|
|
|
|
|
return tmp80;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = shouldShowMembershipVerificationGate;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function getChannelIconComponent(channel, ignoreTraits) {
|
|
|
|
|
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-08-24 06:08:38 +00:00
|
|
|
const items = [closure_4, closure_5, closure_3];
|
|
|
|
|
const result = shouldShowMembershipVerificationGate.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-26 06:04:24 +00:00
|
|
|
return tmp(4968).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-26 06:04:24 +00:00
|
|
|
return tmp(4969).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-26 06:04:24 +00:00
|
|
|
return tmp(4971).FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_TEXT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let TextWarningIcon = tmp(4972).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-26 06:04:24 +00:00
|
|
|
TextWarningIcon = tmp(4973).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-26 06:04:24 +00:00
|
|
|
const TextSpoilerIcon = tmp(4974).TextSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(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-26 06:04:24 +00:00
|
|
|
const TextLockIcon = tmp(4975).TextLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let TextIcon = tmp(4976).TextControllerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
TextIcon = tmp(4977).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-26 06:04:24 +00:00
|
|
|
let ForumWarningIcon = tmp(4972).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-26 06:04:24 +00:00
|
|
|
ForumWarningIcon = tmp(4978).ImageWarningIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
ForumWarningIcon = tmp(4979).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-26 06:04:24 +00:00
|
|
|
const ForumSpoilerIcon2 = tmp(4980).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let ForumLockIcon = tmp(4981).ImageLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
ForumLockIcon = tmp(4982).ForumLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let ForumIcon = tmp(4983).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
ForumIcon = tmp(4984).ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ForumWarningIcon;
|
|
|
|
|
} else if (tmp6.GUILD_MEDIA === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let ImageWarningIcon = tmp(4972).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits6;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits6 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits6) {
|
2026-08-26 06:04:24 +00:00
|
|
|
ImageWarningIcon = tmp(4978).ImageWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-26 06:04:24 +00:00
|
|
|
const ForumSpoilerIcon = tmp(4980).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let ImageIcon = tmp(4981).ImageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
ImageIcon = tmp(4983).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return ImageWarningIcon;
|
|
|
|
|
} else if (tmp6.GROUP_DM === type) {
|
2026-08-26 06:04:24 +00:00
|
|
|
return tmp(4985).GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.DM === type) {
|
2026-08-26 06:04:24 +00:00
|
|
|
return tmp(4986).AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_ANNOUNCEMENT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let AnnouncementsWarningIcon = tmp(4972).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-26 06:04:24 +00:00
|
|
|
AnnouncementsWarningIcon = tmp(4987).AnnouncementsWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-26 06:04:24 +00:00
|
|
|
const AnnouncementsSpoilerIcon = tmp(4988).AnnouncementsSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let AnnouncementsIcon = tmp(4989).AnnouncementsLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
AnnouncementsIcon = tmp(4990).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-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let StageLockIcon = tmp(4991).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
StageLockIcon = tmp(4992).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-26 06:04:24 +00:00
|
|
|
const LockIcon2 = tmp(4991).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let StageIcon = tmp(4992).StageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
StageIcon = tmp(4993).StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_VOICE === type) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let VoiceLockIcon = tmp(4968).ChatIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-08-26 06:04:24 +00:00
|
|
|
VoiceLockIcon = tmp(4991).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
VoiceLockIcon = tmp(4994).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-26 06:04:24 +00:00
|
|
|
const LockIcon = tmp(4991).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isRoleRequiredDefault(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-26 06:04:24 +00:00
|
|
|
const VoiceLockIcon2 = tmp(4994).VoiceLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-26 06:04:24 +00:00
|
|
|
const VoiceWarningIcon = tmp(4995).VoiceWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let VoiceNormalIcon = tmp(4996).VoiceNormalSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
VoiceNormalIcon = tmp(4997).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-26 06:04:24 +00:00
|
|
|
return tmp(4998).HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
return tmp(4970).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = shouldShowMembershipVerificationGate;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
let result = require("set").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-24 06:08:38 +00:00
|
|
|
return registerAssetDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (tmp.ANNOUNCEMENT_THREAD !== arg0) {
|
|
|
|
|
if (tmp.PUBLIC_THREAD !== arg0) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault2;
|
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-24 06:08:38 +00:00
|
|
|
let tmp2 = registerAssetDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp2 = registerAssetDefault2;
|
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-24 06:08:38 +00:00
|
|
|
return registerAssetDefault3;
|
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-24 06:08:38 +00:00
|
|
|
return registerAssetDefault5;
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.DM === type3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault6;
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault7;
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault8;
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault9;
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault10;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
return registerAssetDefault4;
|
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-24 06:08:38 +00:00
|
|
|
let tmp23 = registerAssetDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp23 = registerAssetDefault2;
|
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-26 06:04:24 +00:00
|
|
|
return importDefault(4957);
|
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-24 06:08:38 +00:00
|
|
|
return FolderIcon.FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_TEXT === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return TextIcon2.TextIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_FORUM === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return ForumIcon2.ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_MEDIA === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return ImageIcon2.ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GROUP_DM === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return GroupIcon.GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.DM === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return AtIcon.AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return AnnouncementsIcon2.AnnouncementsIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return StageIcon2.StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return VoiceNormalIcon2.VoiceNormalIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return HubIcon.HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isForumPost()) {
|
2026-08-26 06:04:24 +00:00
|
|
|
let ThreadIcon = tmp23(4968).ChatIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-26 06:04:24 +00:00
|
|
|
ThreadIcon = tmp23(4970).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return ThreadIcon;
|
|
|
|
|
};
|