2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 6832
|
|
|
|
|
// Function ID: 6833
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getChannelIcon
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [1990, 1910, 1922, 676, 6833, 6834, 6835, 6836, 6837, 6838, 6839, 6840, 6841, 6842, 6843, 6844, 6845, 6846, 6847, 6848, 6849, 6850, 6851, 6852, 6853, 6854, 6855, 6856, 6857, 6858, 6861, 5287, 6862, 6863, 6864, 6865, 6866, 6867, 6868, 6869, 6870, 6871, 6872, 6873, 6874, 6875, 6876, 6877, 6878, 6879, 6880, 6881, 6882, 6883, 6884, 6885, 6886, 6887, 6888, 6889, 6890, 6891, 6892, 6893, 6894, 6895, 6896, 6897, 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-15 05:55:55 +00:00
|
|
|
// Module 6832 (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-15 05:55:55 +00:00
|
|
|
const result = require(6858) /* shouldShowMembershipVerificationGate */.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6851);
|
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-15 05:55:55 +00:00
|
|
|
let tmp4 = importDefault(6833);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp4 = importDefault(6834);
|
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-15 05:55:55 +00:00
|
|
|
return importDefault(6835);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_TEXT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp69 = importDefault(6861);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
ignoreTraits = undefined;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp69 = importDefault(6847);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits1;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits1 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits1) {
|
2026-08-15 05:55:55 +00:00
|
|
|
importDefault(6848);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits2;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits2 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits2) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp72Result = tmp72(6857);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp72Result = tmp72(6862);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp72Result = tmp72(6836);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp69;
|
|
|
|
|
} else if (tmp3.GUILD_FORUM === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp58 = importDefault(6861);
|
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-15 05:55:55 +00:00
|
|
|
tmp58 = importDefault(isMediaChannelResult ? 6856 : 6853);
|
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-15 05:55:55 +00:00
|
|
|
importDefault(6854);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp61(isMediaChannelResult ? 6863 : 6864);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
importDefault(isMediaChannelResult ? 6855 : 6852);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp58;
|
|
|
|
|
} else if (tmp3.GUILD_MEDIA === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp48 = importDefault(6861);
|
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-15 05:55:55 +00:00
|
|
|
tmp48 = importDefault(6856);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-15 05:55:55 +00:00
|
|
|
importDefault(6854);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp51Result = tmp51(6863);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp51Result = tmp51(6855);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp48;
|
|
|
|
|
} else if (tmp3.GROUP_DM === type3) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6837);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp3.DM === type3) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6838);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_ANNOUNCEMENT === type3) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp35 = importDefault(6861);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp35 = importDefault(6849);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-15 05:55:55 +00:00
|
|
|
importDefault(6850);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp38Result = tmp38(6865);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp38Result = tmp38(6839);
|
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-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
|
|
|
|
let tmp24Result = tmp24(6866);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp24Result = tmp24(6846);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return tmp24Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (locked) {
|
|
|
|
|
let ignoreTraits13;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits13 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits13) {
|
2026-08-15 05:55:55 +00:00
|
|
|
importDefault(6866);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp28Result = tmp28(6846);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp28Result = tmp28(6840);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.GUILD_VOICE === type3) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp9Result = importDefault(6851);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
|
|
|
|
tmp9Result = tmp9(6866);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp9Result = tmp9(6843);
|
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-15 05:55:55 +00:00
|
|
|
importDefault(6866);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp13(6843);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp13(6844);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let tmp13Result1 = tmp13(6845);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp13Result1 = tmp13(6841);
|
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-15 05:55:55 +00:00
|
|
|
return importDefault(6842);
|
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-15 05:55:55 +00:00
|
|
|
let tmp80 = importDefault(6833);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp3.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp80 = importDefault(6834);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
tmp80 = null;
|
|
|
|
|
}
|
|
|
|
|
return tmp80;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
const obj2 = require(6858) /* 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-15 05:55:55 +00:00
|
|
|
const result = require(6858) /* shouldShowMembershipVerificationGate */.shouldShowMembershipVerificationGate(channel.guild_id, items);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (channel.isForumPost()) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return tmp(6867).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-15 05:55:55 +00:00
|
|
|
return tmp(6868).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-15 05:55:55 +00:00
|
|
|
return tmp(6870).FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_TEXT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let TextWarningIcon = tmp(6871).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-15 05:55:55 +00:00
|
|
|
TextWarningIcon = tmp(6872).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-15 05:55:55 +00:00
|
|
|
const TextSpoilerIcon = tmp(6873).TextSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(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-15 05:55:55 +00:00
|
|
|
const TextLockIcon = tmp(6874).TextLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (null != channel.linkedLobby) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let TextIcon = tmp(6875).TextControllerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
TextIcon = tmp(6876).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-15 05:55:55 +00:00
|
|
|
let ForumWarningIcon = tmp(6871).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-15 05:55:55 +00:00
|
|
|
ForumWarningIcon = tmp(6877).ImageWarningIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
ForumWarningIcon = tmp(6878).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-15 05:55:55 +00:00
|
|
|
const ForumSpoilerIcon2 = tmp(6879).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits5;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits5 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits5) {
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let ForumLockIcon = tmp(6880).ImageLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
ForumLockIcon = tmp(6881).ForumLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isMediaChannelResult) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let ForumIcon = tmp(6882).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
ForumIcon = tmp(6883).ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ForumWarningIcon;
|
|
|
|
|
} else if (tmp6.GUILD_MEDIA === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let ImageWarningIcon = tmp(6871).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits6;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits6 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits6) {
|
2026-08-15 05:55:55 +00:00
|
|
|
ImageWarningIcon = tmp(6877).ImageWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits7;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits7 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits7) {
|
2026-08-15 05:55:55 +00:00
|
|
|
const ForumSpoilerIcon = tmp(6879).ForumSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits8;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits8 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits8) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let ImageIcon = tmp(6880).ImageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
ImageIcon = tmp(6882).ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return ImageWarningIcon;
|
|
|
|
|
} else if (tmp6.GROUP_DM === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return tmp(6884).GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.DM === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return tmp(6885).AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_ANNOUNCEMENT === type) {
|
|
|
|
|
if (isRulesChannel) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let AnnouncementsWarningIcon = tmp(6871).BookCheckIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits9;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits9 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits9) {
|
2026-08-15 05:55:55 +00:00
|
|
|
AnnouncementsWarningIcon = tmp(6886).AnnouncementsWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits10;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits10 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits10) {
|
2026-08-15 05:55:55 +00:00
|
|
|
const AnnouncementsSpoilerIcon = tmp(6887).AnnouncementsSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits11;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits11 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits11) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let AnnouncementsIcon = tmp(6888).AnnouncementsLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
AnnouncementsIcon = tmp(6889).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-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
|
|
|
|
let StageLockIcon = tmp(6890).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
StageLockIcon = tmp(6891).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-15 05:55:55 +00:00
|
|
|
const LockIcon2 = tmp(6890).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits14;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits14 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits14) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let StageIcon = tmp(6891).StageLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
StageIcon = tmp(6892).StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp6.GUILD_VOICE === type) {
|
|
|
|
|
if (obj.textFocused) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let VoiceLockIcon = tmp(6867).ChatIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (result) {
|
|
|
|
|
let ignoreTraits15;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits15 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits15) {
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
|
|
|
|
VoiceLockIcon = tmp(6890).LockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
VoiceLockIcon = tmp(6893).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-15 05:55:55 +00:00
|
|
|
const LockIcon = tmp(6890).LockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
if (importDefault(5287)(channel)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let ignoreTraits17;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits17 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits17) {
|
2026-08-15 05:55:55 +00:00
|
|
|
const VoiceLockIcon2 = tmp(6893).VoiceLockIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isNSFWResult) {
|
|
|
|
|
let ignoreTraits18;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits18 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits18) {
|
2026-08-15 05:55:55 +00:00
|
|
|
const VoiceWarningIcon = tmp(6894).VoiceWarningIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isSpoilerChannel()) {
|
|
|
|
|
let ignoreTraits19;
|
|
|
|
|
if (ignoreTraits != null) {
|
|
|
|
|
ignoreTraits19 = ignoreTraits.ignoreTraits;
|
|
|
|
|
}
|
|
|
|
|
if (!ignoreTraits19) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let VoiceNormalIcon = tmp(6895).VoiceNormalSpoilerIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
VoiceNormalIcon = tmp(6896).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-15 05:55:55 +00:00
|
|
|
return tmp(6897).HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
return tmp(6869).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
const obj2 = require(6858) /* 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-15 05:55:55 +00:00
|
|
|
return importDefault(6833);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
if (tmp.ANNOUNCEMENT_THREAD !== arg0) {
|
|
|
|
|
if (tmp.PUBLIC_THREAD !== arg0) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6834);
|
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-15 05:55:55 +00:00
|
|
|
let tmp2 = importDefault(6833);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp2 = importDefault(6834);
|
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-15 05:55:55 +00:00
|
|
|
return importDefault(6835);
|
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-15 05:55:55 +00:00
|
|
|
return importDefault(6837);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.DM === type3) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6838);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type3) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6839);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type3) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6840);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type3) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6841);
|
2026-08-13 07:00:46 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type3) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6842);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
return importDefault(6836);
|
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-15 05:55:55 +00:00
|
|
|
let tmp23 = importDefault(6833);
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.ANNOUNCEMENT_THREAD === type2) {
|
2026-08-15 05:55:55 +00:00
|
|
|
tmp23 = importDefault(6834);
|
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-15 05:55:55 +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-15 05:55:55 +00:00
|
|
|
return require(6870) /* FolderIcon */.FolderIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_TEXT === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6876) /* TextIcon */.TextIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_FORUM === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6883) /* ForumIcon */.ForumIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_MEDIA === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6882) /* ImageIcon */.ImageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GROUP_DM === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6884) /* GroupIcon */.GroupIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.DM === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6885) /* AtIcon */.AtIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_ANNOUNCEMENT === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6889) /* AnnouncementsIcon */.AnnouncementsIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_STAGE_VOICE === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6892) /* StageIcon */.StageIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_VOICE === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6896) /* VoiceNormalIcon */.VoiceNormalIcon;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.GUILD_DIRECTORY === type) {
|
2026-08-15 05:55:55 +00:00
|
|
|
return require(6897) /* HubIcon */.HubIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (channel.isForumPost()) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let ThreadIcon = tmp23(6867).ChatIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-15 05:55:55 +00:00
|
|
|
ThreadIcon = tmp23(6869).ThreadIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return ThreadIcon;
|
|
|
|
|
};
|