decord/source/modules/guild_settings/GuildSettingsConstants.tsx

56 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16919
// Function ID: 16920
2026-07-20 16:05:17 +00:00
// Name: MAX_SUBCATEGORIES
2026-07-29 08:29:29 +00:00
// Dependencies: [1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: getSettingsErrorMessage
2026-08-24 06:08:38 +00:00
// Module 16919 (MAX_SUBCATEGORIES)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-07-20 16:05:17 +00:00
const obj = {
afk_channel_id() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.KuYcnU);
2026-07-20 16:05:17 +00:00
},
public_updates_channel_id() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.vAyDGU);
2026-07-20 16:05:17 +00:00
},
safety_alerts_channel_id() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.sMkYE8);
2026-07-20 16:05:17 +00:00
},
system_channel_id() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.NASFnq);
2026-07-20 16:05:17 +00:00
}
};
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/guild_settings/GuildSettingsConstants.tsx");
2026-07-20 16:05:17 +00:00
export const MAX_SUBCATEGORIES = 5;
export const MAX_KEYWORDS = 10;
export const MAX_KEYWORD_LENGTH = 30;
export const GuildSettingsRoleEditSections = { DISPLAY: 0, [0]: "DISPLAY", PERMISSIONS: 1, [1]: "PERMISSIONS", MEMBERS: 2, [2]: "MEMBERS", VERIFICATIONS: 3, [3]: "VERIFICATIONS" };
export const ERROR_KEY_TO_LABEL_FUNC = obj;
export const getSettingsErrorMessage = function getSettingsErrorMessage(arg0) {
if (0 === Object.keys(arg0).length) {
return null;
} else {
const _Object = Object;
const first = Object.keys(arg0)[0];
2026-07-29 08:29:29 +00:00
let tmp2Result;
if (obj[first] != null) {
tmp2Result = tmp2();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (null != tmp2Result) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
let combined = "(" + tmp2Result + ") " + arg0[first];
2026-07-20 16:05:17 +00:00
} else {
combined = arg0[first];
}
return combined;
}
};
export const VANITY_URL_INVITE_ENDPOINT = "https://discord.gg";