564 lines
19 KiB
TypeScript
564 lines
19 KiB
TypeScript
// Metro module 6718 (f6719).
|
|
import { ChannelTypes, ChannelTypesSets, HelpdeskArticles, Permissions } from "../../Constants";
|
|
import { intl, t } from "../../intl/index.native";
|
|
import ForumPlatformUtils_native from "../forums/ForumPlatformUtils.native";
|
|
import HelpdeskUtils from "../../utils/HelpdeskUtils";
|
|
import GuildTiVPlatformUtils_native from "../text_in_voice/GuildTiVPlatformUtils.native";
|
|
const r24 = {
|
|
EMPTY_STATE: 0,
|
|
0: "EMPTY_STATE",
|
|
ADMINISTRATOR: 1,
|
|
1: "ADMINISTRATOR",
|
|
ROLE: 2,
|
|
2: "ROLE",
|
|
OWNER: 3,
|
|
3: "OWNER",
|
|
MEMBER: 4,
|
|
4: "MEMBER",
|
|
USER: 5,
|
|
5: "USER",
|
|
GUILD: 6,
|
|
6: "GUILD"
|
|
};
|
|
const r34 = {
|
|
ROLES: 0,
|
|
0: "ROLES",
|
|
MEMBERS: 1,
|
|
1: "MEMBERS",
|
|
USERS: 2,
|
|
2: "USERS",
|
|
GUILDS: 3,
|
|
3: "GUILDS"
|
|
};
|
|
const r39 = {
|
|
SETTINGS_PAGE: "settings-page",
|
|
MEMBERS_LIST: "members-list",
|
|
EMPTY_STATE: "empty-state",
|
|
CREATE_CHANNEL: "create-channel"
|
|
};
|
|
const r44 = {
|
|
BASIC: "basic",
|
|
ADVANCED: "advanced"
|
|
};
|
|
export { r24 as RowType };
|
|
export { r34 as AudienceSelectorSections };
|
|
export const MEMBER_REQUEST_COUNT = 20;
|
|
export const ADVANCED_MODE_ON_KEY = "channelPermissionSettingsAdvancedModeOn";
|
|
export { r39 as TrackExposureLocations };
|
|
export { r44 as SettingMode };
|
|
export function getChannelPermissionSpecMap(a0, a1, a2) {
|
|
let r49, r172, r182, r546, r659, r669, r707, r717, r739, r749, r771, r781, r798, r808, r825, r835, r910, r920, r942, r952, r1015, r1025, r1047, r1057, r1075, r1085, r1159, r1250, DlIVcN, S31soU, XcrieN, XmoyRD, amZ5vn, bcuobK, bgIY3H, description, description3, description4, description6, description7, description8, fUYPly, iXhS6R, maNzCO;
|
|
const type = a0.type;
|
|
const r4 = Permissions.VIEW_CHANNEL.toString();
|
|
const title = type === ChannelTypes.GUILD_CATEGORY ? intl.string(t.uV83yi) : intl.string(t["W/A4Qp"]);
|
|
L14: {
|
|
r49 = {
|
|
title,
|
|
description: null,
|
|
flag: null
|
|
};
|
|
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
|
if (a1) {
|
|
if (GUILD_CATEGORY === type) {
|
|
description = t["o/vBzj"];
|
|
} else {
|
|
if (ChannelTypes.GUILD_VOICE !== type && ChannelTypes.GUILD_STAGE_VOICE !== type) {
|
|
description = t["3jG0Bo"];
|
|
break L14;
|
|
}
|
|
description = t.ejL1Wo;
|
|
}
|
|
} else {
|
|
description = type === GUILD_CATEGORY ? t.SzosGs : t.M2iEy3;
|
|
}
|
|
}
|
|
const r74 = {};
|
|
r49.description = description;
|
|
r49.flag = Permissions.VIEW_CHANNEL;
|
|
r74[r4] = r49;
|
|
r74[Permissions.MANAGE_CHANNELS.toString()] = {
|
|
title: type === ChannelTypes.GUILD_CATEGORY ? intl.string(t["9qLtWs"]) : intl.string(t.nAw15L),
|
|
description: ChannelTypes.GUILD_CATEGORY === type ? t.KJ2JnG : ChannelTypes.GUILD_VOICE === type ? t["+gl2ne"] : ChannelTypes.GUILD_STAGE_VOICE === type ? t.SDX669 : t.ydL28i,
|
|
flag: Permissions.MANAGE_CHANNELS
|
|
};
|
|
r74[Permissions.MANAGE_ROLES.toString()] = {
|
|
title: intl.string(t.ICb6am),
|
|
description: ChannelTypes.GUILD_CATEGORY === type ? t.TyyCMD : ChannelTypes.GUILD_STAGE_VOICE === type ? t.hcw4mx : t.hOMXOv,
|
|
flag: Permissions.MANAGE_ROLES
|
|
};
|
|
const r150 = Permissions.MANAGE_WEBHOOKS.toString();
|
|
const r160 = {
|
|
title: intl.string(t["/ADKmM"]),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
const description2 = type === ChannelTypes.GUILD_CATEGORY ? t["K5+ZZ7"] : t.CYBZry;
|
|
L38: {
|
|
r160.description = description2;
|
|
r160.flag = Permissions.MANAGE_WEBHOOKS;
|
|
r74[r150] = r160;
|
|
r172 = Permissions.CREATE_INSTANT_INVITE.toString();
|
|
r182 = {
|
|
title: intl.string(t.zJrgTG),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
description3 = t["3YFAAX"];
|
|
} else {
|
|
if (ChannelTypes.GUILD_VOICE !== type && ChannelTypes.GUILD_STAGE_VOICE !== type) {
|
|
description3 = t.q4g2aI;
|
|
break L38;
|
|
}
|
|
description3 = t.lUCs1n;
|
|
}
|
|
}
|
|
r182.description = description3;
|
|
r182.flag = Permissions.CREATE_INSTANT_INVITE;
|
|
r74[r172] = r182;
|
|
r74[Permissions.SEND_MESSAGES.toString()] = {
|
|
title: ChannelTypesSets.GUILD_THREADS_ONLY.has(type) ? intl.string(t.nJwAHX) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t.S1VOwd) : intl.string(t.T32rkC),
|
|
description: ChannelTypes.GUILD_CATEGORY === type ? t.IjeLuu : ChannelTypes.GUILD_FORUM === type ? a2?.createPostsDisabled && !a0.isMediaChannel() ? ForumPlatformUtils_native.getForumChannelPermissionText() : t.LG9VAi : ChannelTypes.GUILD_MEDIA === type ? t.LG9VAi : ChannelTypes.GUILD_ANNOUNCEMENT === type ? intl.format(t.WFwfSD, {
|
|
articleURL: HelpdeskUtils.getArticleURL(HelpdeskArticles.ANNOUNCEMENT_CHANNELS)
|
|
}) : ChannelTypes.GUILD_VOICE === type ? GuildTiVPlatformUtils_native.getTextInVoiceSendMessageChannelPermissionText(a2?.sendMessagesDisabled) : t.WQ6zpT,
|
|
flag: Permissions.SEND_MESSAGES
|
|
};
|
|
r74[Permissions.EMBED_LINKS.toString()] = {
|
|
title: intl.string(t["969dEL"]),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t["7zlUay"] : t.XFFhA0,
|
|
flag: Permissions.EMBED_LINKS
|
|
};
|
|
r74[Permissions.ATTACH_FILES.toString()] = {
|
|
title: intl.string(t["3AS4UM"]),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.XREf9l : t.WK9r7F,
|
|
flag: Permissions.ATTACH_FILES
|
|
};
|
|
r74[Permissions.ADD_REACTIONS.toString()] = {
|
|
title: intl.string(t.yEoJAr),
|
|
description: ChannelTypes.GUILD_CATEGORY === type ? t.pZT2Zh : ChannelTypes.GUILD_VOICE === type ? t.xSSbIs : t.PVjR1Y,
|
|
flag: Permissions.ADD_REACTIONS
|
|
};
|
|
r74[Permissions.USE_EXTERNAL_EMOJIS.toString()] = {
|
|
title: intl.string(t["+bxf3H"]),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.mWAbK4 : t.Qc5vOr,
|
|
flag: Permissions.USE_EXTERNAL_EMOJIS
|
|
};
|
|
r74[Permissions.USE_EXTERNAL_STICKERS.toString()] = {
|
|
title: intl.string(t.ERNhYf),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t["39whJ4"] : t.VF4fZZ,
|
|
flag: Permissions.USE_EXTERNAL_STICKERS
|
|
};
|
|
r74[Permissions.MENTION_EVERYONE.toString()] = {
|
|
title: type === ChannelTypes.GUILD_STAGE_VOICE ? intl.string(t.VDUAHO) : intl.string(t.Y78KGC),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t["HOhg/B"] : type === ChannelTypes.GUILD_STAGE_VOICE ? t.rZn1oO : t["6IUSdt"],
|
|
flag: Permissions.MENTION_EVERYONE
|
|
};
|
|
r74[Permissions.MANAGE_MESSAGES.toString()] = {
|
|
title: intl.string(t["6lU9xM"]),
|
|
description: ChannelTypes.GUILD_CATEGORY === type ? t["5R9nYh"] : ChannelTypes.GUILD_ANNOUNCEMENT === type ? intl.format(t.XRxOo0, {
|
|
articleURL: HelpdeskUtils.getArticleURL(HelpdeskArticles.ANNOUNCEMENT_CHANNELS)
|
|
}) : t["SeA+G9"],
|
|
flag: Permissions.MANAGE_MESSAGES
|
|
};
|
|
r74[Permissions.PIN_MESSAGES.toString()] = {
|
|
title: intl.string(t.Y5BI39),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.gmbD87 : t["0l2EjL"],
|
|
flag: Permissions.PIN_MESSAGES
|
|
};
|
|
r74[Permissions.BYPASS_SLOWMODE.toString()] = {
|
|
title: intl.string(t.kqcjeV),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.C4t1Xu : t.Ha1xbw,
|
|
flag: Permissions.BYPASS_SLOWMODE
|
|
};
|
|
r74[Permissions.MANAGE_OFFICIAL_MESSAGES.toString()] = {
|
|
title: intl.string(t.Aj9ruN),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t["Pf0e/Q"] : t.qEbw4W,
|
|
flag: Permissions.MANAGE_OFFICIAL_MESSAGES
|
|
};
|
|
const r532 = Permissions.READ_MESSAGE_HISTORY.toString();
|
|
const title2 = ChannelTypesSets.GUILD_THREADS_ONLY.has(type) ? intl.string(t["0RQwtn"]) : intl.string(t.l9ufaR);
|
|
L116: {
|
|
r546 = {
|
|
title: title2,
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
description4 = t["cJRv/g"];
|
|
} else if (ChannelTypes.GUILD_VOICE === type) {
|
|
description4 = GuildTiVPlatformUtils_native.getTextInVoiceReadMessageHistoryChannelPermissionText(a2?.readMessageHistoryDisabled);
|
|
} else {
|
|
if (ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
description4 = t.cuMfH0;
|
|
break L116;
|
|
}
|
|
description4 = t.RqCc7i;
|
|
}
|
|
}
|
|
r546.description = description4;
|
|
r546.flag = Permissions.READ_MESSAGE_HISTORY;
|
|
r74[r532] = r546;
|
|
r74[Permissions.SEND_TTS_MESSAGES.toString()] = {
|
|
title: intl.string(t.mMbwh7),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.b7pc9U : t.CpakGz,
|
|
flag: Permissions.SEND_TTS_MESSAGES
|
|
};
|
|
r74[Permissions.USE_APPLICATION_COMMANDS.toString()] = {
|
|
title: intl.string(t.nkoPOt),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t["D+qW0J"] : t.ReG3gG,
|
|
flag: Permissions.USE_APPLICATION_COMMANDS
|
|
};
|
|
r74[Permissions.SEND_VOICE_MESSAGES.toString()] = {
|
|
title: intl.string(t.WlWSBT),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.gavGfv : t.BhEo9V,
|
|
flag: Permissions.SEND_VOICE_MESSAGES
|
|
};
|
|
const r637 = Permissions.SEND_POLLS.toString();
|
|
const r647 = {
|
|
title: intl.string(t.UMQ7Ww),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
const description5 = type === ChannelTypes.GUILD_CATEGORY ? t["18Ya7L"] : t.ckKKIO;
|
|
L147: {
|
|
r647.description = description5;
|
|
r647.flag = Permissions.SEND_POLLS;
|
|
r74[r637] = r647;
|
|
r659 = Permissions.CONNECT.toString();
|
|
r669 = {
|
|
title: intl.string(t.S0W8Z5),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
const GUILD_CATEGORY2 = ChannelTypes.GUILD_CATEGORY;
|
|
if (a1) {
|
|
if (GUILD_CATEGORY2 === type) {
|
|
XcrieN = t.XcrieN;
|
|
} else if (ChannelTypes.GUILD_STAGE_VOICE === type) {
|
|
XcrieN = t.SOFNhP;
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
XcrieN = t.j4AyO8;
|
|
break L147;
|
|
}
|
|
XcrieN = t.LsS8xT;
|
|
}
|
|
} else if (GUILD_CATEGORY2 === type) {
|
|
XcrieN = t.stA0Hl;
|
|
} else if (ChannelTypes.GUILD_STAGE_VOICE === type) {
|
|
XcrieN = t["G9+Qie"];
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
XcrieN = t.HvG8uR;
|
|
break L147;
|
|
}
|
|
XcrieN = t["QU/Rw8"];
|
|
}
|
|
}
|
|
L156: {
|
|
r669.description = XcrieN;
|
|
r669.flag = Permissions.CONNECT;
|
|
r74[r659] = r669;
|
|
r707 = Permissions.SPEAK.toString();
|
|
r717 = {
|
|
title: intl.string(t["8w1tIR"]),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
iXhS6R = t.iXhS6R;
|
|
} else if (ChannelTypes.GUILD_STAGE_VOICE === type) {
|
|
iXhS6R = t.a8n741;
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
iXhS6R = t["568E6d"];
|
|
break L156;
|
|
}
|
|
iXhS6R = t["+VXsJI"];
|
|
}
|
|
}
|
|
L165: {
|
|
r717.description = iXhS6R;
|
|
r717.flag = Permissions.SPEAK;
|
|
r74[r707] = r717;
|
|
r739 = Permissions.STREAM.toString();
|
|
r749 = {
|
|
title: intl.string(t.FlNoSV),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
description6 = t["ryG0/J"];
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
if (ChannelTypes.GUILD_STAGE_VOICE === type) {
|
|
description6 = t.swJcN6;
|
|
break L165;
|
|
}
|
|
description6 = t.RY8rIc;
|
|
break L165;
|
|
}
|
|
description6 = t.AuEQEC;
|
|
}
|
|
}
|
|
L171: {
|
|
r749.description = description6;
|
|
r749.flag = Permissions.STREAM;
|
|
r74[r739] = r749;
|
|
r771 = Permissions.USE_EMBEDDED_ACTIVITIES.toString();
|
|
r781 = {
|
|
title: intl.string(t.rLSGeh),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
maNzCO = t.maNzCO;
|
|
} else {
|
|
if (ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
maNzCO = t.qinvMU;
|
|
break L171;
|
|
}
|
|
maNzCO = t.RyEwla;
|
|
}
|
|
}
|
|
L177: {
|
|
r781.description = maNzCO;
|
|
r781.flag = Permissions.USE_EMBEDDED_ACTIVITIES;
|
|
r74[r771] = r781;
|
|
r798 = Permissions.USE_EXTERNAL_APPS.toString();
|
|
r808 = {
|
|
title: intl.string(t["3TzAk0"]),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
bgIY3H = t.bgIY3H;
|
|
} else {
|
|
if (ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
bgIY3H = t.czqMLp;
|
|
break L177;
|
|
}
|
|
bgIY3H = t.qPUPip;
|
|
}
|
|
}
|
|
L184: {
|
|
r808.description = bgIY3H;
|
|
r808.flag = Permissions.USE_EXTERNAL_APPS;
|
|
r74[r798] = r808;
|
|
r825 = Permissions.USE_SOUNDBOARD.toString();
|
|
r835 = {
|
|
title: intl.string(t.Bco7NG),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
description7 = intl.format(t["0kBp/0"], {
|
|
helpCenterArticle: HelpdeskUtils.getArticleURL(HelpdeskArticles.SOUNDBOARD)
|
|
});
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
description7 = intl.format(t.GEi6Ym, {
|
|
helpCenterArticle: HelpdeskUtils.getArticleURL(HelpdeskArticles.SOUNDBOARD)
|
|
});
|
|
break L184;
|
|
}
|
|
description7 = intl.format(t["6eYqU1"], {
|
|
helpCenterArticle: HelpdeskUtils.getArticleURL(HelpdeskArticles.SOUNDBOARD)
|
|
});
|
|
}
|
|
}
|
|
L193: {
|
|
r835.description = description7;
|
|
r835.flag = Permissions.USE_SOUNDBOARD;
|
|
r74[r825] = r835;
|
|
r74[Permissions.USE_EXTERNAL_SOUNDS.toString()] = {
|
|
title: intl.string(t.pwaVJ6),
|
|
description: t.qDpPtX,
|
|
flag: Permissions.USE_EXTERNAL_SOUNDS
|
|
};
|
|
r910 = Permissions.USE_VAD.toString();
|
|
r920 = {
|
|
title: intl.string(t["08zAV7"]),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
fUYPly = t.fUYPly;
|
|
} else if (ChannelTypes.GUILD_STAGE_VOICE === type) {
|
|
fUYPly = t.BJKqsW;
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
fUYPly = t.s2eihY;
|
|
break L193;
|
|
}
|
|
fUYPly = t["3GJwsc"];
|
|
}
|
|
}
|
|
L200: {
|
|
r920.description = fUYPly;
|
|
r920.flag = Permissions.USE_VAD;
|
|
r74[r910] = r920;
|
|
r942 = Permissions.PRIORITY_SPEAKER.toString();
|
|
r952 = {
|
|
title: intl.string(t.BVK71i),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
description8 = intl.format(t.g5MzON, {
|
|
keybind: intl.string(t.DkSwJ2)
|
|
});
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
description8 = intl.format(t.Ij0yKX, {
|
|
keybind: intl.string(t.DkSwJ2)
|
|
});
|
|
break L200;
|
|
}
|
|
description8 = intl.format(t["4nbjL0"], {
|
|
keybind: intl.string(t.DkSwJ2)
|
|
});
|
|
}
|
|
}
|
|
L209: {
|
|
r952.description = description8;
|
|
r952.flag = Permissions.PRIORITY_SPEAKER;
|
|
r74[r942] = r952;
|
|
r1015 = Permissions.MUTE_MEMBERS.toString();
|
|
r1025 = {
|
|
title: intl.string(t["8EI30/"]),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
bcuobK = t.bcuobK;
|
|
} else if (ChannelTypes.GUILD_STAGE_VOICE === type) {
|
|
bcuobK = t.EbvdH9;
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
bcuobK = t.LW5C9P;
|
|
break L209;
|
|
}
|
|
bcuobK = t.KYDG2K;
|
|
}
|
|
}
|
|
L216: {
|
|
r1025.description = bcuobK;
|
|
r1025.flag = Permissions.MUTE_MEMBERS;
|
|
r74[r1015] = r1025;
|
|
r1047 = Permissions.DEAFEN_MEMBERS.toString();
|
|
r1057 = {
|
|
title: intl.string(t["9L47Fr"]),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
amZ5vn = t.amZ5vn;
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
amZ5vn = t.UAdIxo;
|
|
break L216;
|
|
}
|
|
amZ5vn = t["d+i1nX"];
|
|
}
|
|
}
|
|
L225: {
|
|
r1057.description = amZ5vn;
|
|
r1057.flag = Permissions.DEAFEN_MEMBERS;
|
|
r74[r1047] = r1057;
|
|
r1075 = Permissions.MOVE_MEMBERS.toString();
|
|
r1085 = {
|
|
title: intl.string(t.YtjJPQ),
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
XmoyRD = t.XmoyRD;
|
|
} else if (ChannelTypes.GUILD_STAGE_VOICE === type) {
|
|
XmoyRD = t.bizKz6;
|
|
} else {
|
|
if (ChannelTypes.GUILD_TEXT !== type && ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
XmoyRD = t.nSD1ah;
|
|
break L225;
|
|
}
|
|
XmoyRD = t.cbdQy2;
|
|
}
|
|
}
|
|
r1085.description = XmoyRD;
|
|
r1085.flag = Permissions.MOVE_MEMBERS;
|
|
r74[r1075] = r1085;
|
|
r74[Permissions.REQUEST_TO_SPEAK.toString()] = {
|
|
title: intl.string(t["5kicT2"]),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.T1lMSl : t.uzlYFE,
|
|
flag: Permissions.REQUEST_TO_SPEAK
|
|
};
|
|
const r1129 = Permissions.MANAGE_THREADS.toString();
|
|
const title3 = ChannelTypesSets.GUILD_THREADS_ONLY.has(type) ? intl.string(t.ossiZD) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t.QKe7Q3) : intl.string(t.kEqgr7);
|
|
L240: {
|
|
r1159 = {
|
|
title: title3,
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
S31soU = t.S31soU;
|
|
} else {
|
|
if (ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
S31soU = t.yvan0j;
|
|
break L240;
|
|
}
|
|
S31soU = t["XLi/jG"];
|
|
}
|
|
}
|
|
r1159.description = S31soU;
|
|
r1159.flag = Permissions.MANAGE_THREADS;
|
|
r74[r1129] = r1159;
|
|
r74[Permissions.CREATE_PUBLIC_THREADS.toString()] = {
|
|
title: intl.string(t["25rKnX"]),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t["+M1yLj"] : t["5SDtGB"],
|
|
flag: Permissions.CREATE_PUBLIC_THREADS
|
|
};
|
|
r74[Permissions.CREATE_PRIVATE_THREADS.toString()] = {
|
|
title: intl.string(t.QwbTSa),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t["hBS/zn"] : t.Chg2zd,
|
|
flag: Permissions.CREATE_PRIVATE_THREADS
|
|
};
|
|
const r1220 = Permissions.SEND_MESSAGES_IN_THREADS.toString();
|
|
const title4 = ChannelTypesSets.GUILD_THREADS_ONLY.has(type) ? intl.string(t.fqhqWm) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t["5QlVGy"]) : intl.string(t.fTE74g);
|
|
L258: {
|
|
r1250 = {
|
|
title: title4,
|
|
description: null,
|
|
flag: null
|
|
};
|
|
if (ChannelTypes.GUILD_CATEGORY === type) {
|
|
DlIVcN = t.DlIVcN;
|
|
} else {
|
|
if (ChannelTypes.GUILD_FORUM !== type && ChannelTypes.GUILD_MEDIA !== type) {
|
|
DlIVcN = t.xHO6Me;
|
|
break L258;
|
|
}
|
|
DlIVcN = t.XTnrPH;
|
|
}
|
|
}
|
|
r1250.description = DlIVcN;
|
|
r1250.flag = Permissions.SEND_MESSAGES_IN_THREADS;
|
|
r74[r1220] = r1250;
|
|
r74[Permissions.MANAGE_EVENTS.toString()] = {
|
|
title: intl.string(t.HIgA5a),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.CP2sz4 : t["4pO/TY"],
|
|
flag: Permissions.MANAGE_EVENTS
|
|
};
|
|
r74[Permissions.CREATE_EVENTS.toString()] = {
|
|
title: intl.string(t.qyjZua),
|
|
description: type === ChannelTypes.GUILD_CATEGORY ? t.XpibmC : t.sPoBLa,
|
|
flag: Permissions.CREATE_EVENTS
|
|
};
|
|
r74[Permissions.SET_VOICE_CHANNEL_STATUS.toString()] = {
|
|
title: intl.string(t.VBwkUf),
|
|
description: a2?.enableHangoutWindow ? t.CYcJ6H : t.C6BzXx,
|
|
flag: Permissions.SET_VOICE_CHANNEL_STATUS
|
|
};
|
|
return r74;
|
|
}
|