2026-08-08 06:10:11 +00:00
|
|
|
// Module ID: 4764
|
|
|
|
|
// Function ID: 4765
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getChannelIcon
|
2026-08-08 06:10:11 +00:00
|
|
|
// Dependencies: [1971, 1891, 1903, 676, 4765, 4766, 4767, 4768, 4769, 4770, 4771, 4772, 4773, 4774, 4775, 4776, 4777, 4778, 4779, 4780, 4781, 4782, 4783, 4784, 4785, 4786, 4787, 4788, 4789, 4790, 4793, 4794, 4795, 4796, 4797, 4798, 4799, 4800, 4801, 4802, 4803, 4804, 4805, 4806, 4807, 4808, 4809, 4810, 4811, 4812, 4813, 4814, 4815, 4816, 4817, 4818, 4819, 4820, 4821, 4822, 4823, 4824, 4825, 4826, 4827, 4828, 4829, 4830, 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-08 06:10:11 +00:00
|
|
|
// Module 4764 (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-08 06:10:11 +00:00
|
|
|
const result = require(4790) /* shouldShowMembershipVerificationGate */.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4783);
|
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-08 06:10:11 +00:00
|
|
|
let tmp4 = importDefault(4765);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp4 = importDefault(4766);
|
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-08 06:10:11 +00:00
|
|
|
return importDefault(4767);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_TEXT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp69 = importDefault(4793);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
ignoreTraits = undefined;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp69 = importDefault(4779);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits1;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits1 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits1) {
|
2026-08-08 06:10:11 +00:00
|
|
|
importDefault(4780);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits2;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits2 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits2) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp72Result = tmp72(4789);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp72Result = tmp72(4795);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp72Result = tmp72(4768);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp69;
|
|
|
|
|
} else if (tmp3.GUILD_FORUM === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp58 = importDefault(4793);
|
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-08 06:10:11 +00:00
|
|
|
tmp58 = importDefault(isMediaChannelResult ? 4788 : 4785);
|
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-08 06:10:11 +00:00
|
|
|
importDefault(4786);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp61(isMediaChannelResult ? 4796 : 4797);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
importDefault(isMediaChannelResult ? 4787 : 4784);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp58;
|
|
|
|
|
} else if (tmp3.GUILD_MEDIA === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp48 = importDefault(4793);
|
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-08 06:10:11 +00:00
|
|
|
tmp48 = importDefault(4788);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-08 06:10:11 +00:00
|
|
|
importDefault(4786);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp51Result = tmp51(4796);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp51Result = tmp51(4787);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp48;
|
|
|
|
|
} else if (tmp3.GROUP_DM === type3) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4769);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.DM === type3) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4770);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_ANNOUNCEMENT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp35 = importDefault(4793);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp35 = importDefault(4781);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-08 06:10:11 +00:00
|
|
|
importDefault(4782);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp38Result = tmp38(4798);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp38Result = tmp38(4771);
|
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-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
|
|
|
|
let tmp24Result = tmp24(4799);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp24Result = tmp24(4778);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp24Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (locked) {
|
|
|
|
|
let ignoreTraits13;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits13 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits13) {
|
2026-08-08 06:10:11 +00:00
|
|
|
importDefault(4799);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp28Result = tmp28(4778);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp28Result = tmp28(4772);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_VOICE === type3) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp9Result = importDefault(4783);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
|
|
|
|
tmp9Result = tmp9(4799);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp9Result = tmp9(4775);
|
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-08 06:10:11 +00:00
|
|
|
importDefault(4799);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp13(4775);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp13(4776);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let tmp13Result1 = tmp13(4777);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp13Result1 = tmp13(4773);
|
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-08 06:10:11 +00:00
|
|
|
return importDefault(4774);
|
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-08 06:10:11 +00:00
|
|
|
let tmp80 = importDefault(4765);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp80 = importDefault(4766);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
tmp80 = null;
|
|
|
|
|
}
|
|
|
|
|
return tmp80;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
const obj2 = require(4790) /* 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-08 06:10:11 +00:00
|
|
|
const result = require(4790) /* shouldShowMembershipVerificationGate */.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return tmp(4800).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-08 06:10:11 +00:00
|
|
|
return tmp(4801).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-08 06:10:11 +00:00
|
|
|
return tmp(4803).FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_TEXT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let TextWarningIcon = tmp(4804).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-08 06:10:11 +00:00
|
|
|
TextWarningIcon = tmp(4805).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-08 06:10:11 +00:00
|
|
|
const TextSpoilerIcon = tmp(4806).TextSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(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-08 06:10:11 +00:00
|
|
|
const TextLockIcon = tmp(4807).TextLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let TextIcon = tmp(4808).TextControllerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
TextIcon = tmp(4809).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-08 06:10:11 +00:00
|
|
|
let ForumWarningIcon = tmp(4804).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-08 06:10:11 +00:00
|
|
|
ForumWarningIcon = tmp(4810).ImageWarningIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
ForumWarningIcon = tmp(4811).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-08 06:10:11 +00:00
|
|
|
const ForumSpoilerIcon2 = tmp(4812).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let ForumLockIcon = tmp(4813).ImageLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
ForumLockIcon = tmp(4814).ForumLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let ForumIcon = tmp(4815).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
ForumIcon = tmp(4816).ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ForumWarningIcon;
|
|
|
|
|
} else if (tmp6.GUILD_MEDIA === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let ImageWarningIcon = tmp(4804).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits6;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits6 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits6) {
|
2026-08-08 06:10:11 +00:00
|
|
|
ImageWarningIcon = tmp(4810).ImageWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-08 06:10:11 +00:00
|
|
|
const ForumSpoilerIcon = tmp(4812).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let ImageIcon = tmp(4813).ImageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
ImageIcon = tmp(4815).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return ImageWarningIcon;
|
|
|
|
|
} else if (tmp6.GROUP_DM === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return tmp(4817).GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.DM === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return tmp(4818).AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_ANNOUNCEMENT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let AnnouncementsWarningIcon = tmp(4804).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-08 06:10:11 +00:00
|
|
|
AnnouncementsWarningIcon = tmp(4819).AnnouncementsWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-08 06:10:11 +00:00
|
|
|
const AnnouncementsSpoilerIcon = tmp(4820).AnnouncementsSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let AnnouncementsIcon = tmp(4821).AnnouncementsLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
AnnouncementsIcon = tmp(4822).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-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
|
|
|
|
let StageLockIcon = tmp(4823).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
StageLockIcon = tmp(4824).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-08 06:10:11 +00:00
|
|
|
const LockIcon2 = tmp(4823).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let StageIcon = tmp(4824).StageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
StageIcon = tmp(4825).StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_VOICE === type) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let VoiceLockIcon = tmp(4800).ChatIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
|
|
|
|
VoiceLockIcon = tmp(4823).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
VoiceLockIcon = tmp(4826).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-08 06:10:11 +00:00
|
|
|
const LockIcon = tmp(4823).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
if (importDefault(4794)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-08 06:10:11 +00:00
|
|
|
const VoiceLockIcon2 = tmp(4826).VoiceLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-08 06:10:11 +00:00
|
|
|
const VoiceWarningIcon = tmp(4827).VoiceWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let VoiceNormalIcon = tmp(4828).VoiceNormalSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
VoiceNormalIcon = tmp(4829).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-08 06:10:11 +00:00
|
|
|
return tmp(4830).HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
return tmp(4802).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
const obj2 = require(4790) /* 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-08 06:10:11 +00:00
|
|
|
return importDefault(4765);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (tmp.ANNOUNCEMENT_THREAD !== arg0) {
|
|
|
|
|
if (tmp.PUBLIC_THREAD !== arg0) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4766);
|
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-08 06:10:11 +00:00
|
|
|
let tmp2 = importDefault(4765);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp2 = importDefault(4766);
|
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-08 06:10:11 +00:00
|
|
|
return importDefault(4767);
|
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-08 06:10:11 +00:00
|
|
|
return importDefault(4769);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.DM === type3) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4770);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type3) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4771);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type3) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4772);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type3) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4773);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type3) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4774);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-08 06:10:11 +00:00
|
|
|
return importDefault(4768);
|
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-08 06:10:11 +00:00
|
|
|
let tmp23 = importDefault(4765);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-08 06:10:11 +00:00
|
|
|
tmp23 = importDefault(4766);
|
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-06 08:05:19 +00:00
|
|
|
|
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-08 06:10:11 +00:00
|
|
|
return require(4803) /* FolderIcon */.FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_TEXT === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4809) /* TextIcon */.TextIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_FORUM === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4816) /* ForumIcon */.ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_MEDIA === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4815) /* ImageIcon */.ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GROUP_DM === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4817) /* GroupIcon */.GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.DM === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4818) /* AtIcon */.AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4822) /* AnnouncementsIcon */.AnnouncementsIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4825) /* StageIcon */.StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4829) /* VoiceNormalIcon */.VoiceNormalIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4830) /* HubIcon */.HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isForumPost()) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let ThreadIcon = tmp23(4800).ChatIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-08 06:10:11 +00:00
|
|
|
ThreadIcon = tmp23(4802).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return ThreadIcon;
|
|
|
|
|
};
|