decord/source/utils/HelpdeskUtils.tsx

59 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1945
// Function ID: 1946
// Name: combined
2026-08-05 07:35:12 +00:00
// Dependencies: [1946, 676, 3867, 500, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 1945 (combined)
import _getSystemLocale from "_getSystemLocale";
2026-07-23 10:11:24 +00:00
import ME from "ME";
const require = arg1;
const LocalizedLinks = ME.LocalizedLinks;
2026-07-29 08:29:29 +00:00
let combined = "https://" + ME.SUPPORT_DOMAIN;
2026-07-23 10:11:24 +00:00
let closure_6 = "https://" + ME.SUPPORT_DEV_DOMAIN;
const result = require("getLocalizedLink").fileFinishedImporting("utils/HelpdeskUtils.tsx");
2026-07-20 16:05:17 +00:00
export default {
getArticleURL(REFERRAL_PROGRAM) {
2026-07-29 08:29:29 +00:00
return combined + "/hc/" + _getSystemLocale.locale.toLowerCase() + "/articles/" + REFERRAL_PROGRAM;
2026-07-20 16:05:17 +00:00
},
getDevArticleURL(arg0) {
2026-07-29 08:29:29 +00:00
let tmp2 = closure_6;
const combined = "/hc/" + _getSystemLocale.locale.toLowerCase() + "/articles/" + arg0;
if (closure_6 === undefined) {
tmp2 = combined;
}
return tmp2 + combined;
2026-07-20 16:05:17 +00:00
},
getCreatorSupportArticleURL(MEDIA_CHANNEL) {
2026-07-29 08:29:29 +00:00
return "https://creator-support.discord.com" + "/hc/" + _getSystemLocale.locale.toLowerCase() + "/articles/" + MEDIA_CHANNEL;
2026-07-20 16:05:17 +00:00
},
getTwitterURL() {
2026-08-05 07:35:12 +00:00
return importDefault(3867)(LocalizedLinks.TWITTER);
2026-07-20 16:05:17 +00:00
},
getCommunityURL() {
2026-07-29 08:29:29 +00:00
return combined + "/hc/" + _getSystemLocale.locale.toLowerCase();
2026-07-20 16:05:17 +00:00
},
getSubmitRequestURL(arg0) {
2026-07-29 08:29:29 +00:00
const formatted = _getSystemLocale.locale.toLowerCase();
const sum = combined + "/hc/" + formatted + "/requests/new?platform=" + encodeURIComponent(require(500) /* set */.getPlatformName());
let sum1 = sum;
2026-07-20 16:05:17 +00:00
if (null != arg0) {
const _encodeURIComponent = encodeURIComponent;
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
sum1 = sum + "&device_info=" + encodeURIComponent(arg0);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return sum1;
2026-07-20 16:05:17 +00:00
},
getSearchURL(arg0) {
2026-07-29 08:29:29 +00:00
return combined + "/hc/" + _getSystemLocale.locale.toLowerCase() + "/search?utf8=%E2%9C%93&query=" + encodeURIComponent(arg0) + "&commit=Search";
2026-07-20 16:05:17 +00:00
},
getFeaturedArticlesJsonURL() {
2026-07-29 08:29:29 +00:00
return combined + "/api/v2/help_center/en-us/articles.json?label_names=featured";
2026-07-20 16:05:17 +00:00
},
getAppsSupportURL(APPS_LEARN_MORE) {
2026-07-29 08:29:29 +00:00
return "https://support-apps.discord.com" + "/hc/" + _getSystemLocale.locale.toLowerCase() + "/articles/" + APPS_LEARN_MORE;
2026-07-20 16:05:17 +00:00
}
};
export const SUPPORT_LOCATION = combined;