Module 975571

1,058 characters · in no known chunk
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>f,C:()=>o});var r=n(472501),i=n(773669),s=n(723702),a=n(652215);let o=`https://${a.XlF}`,l=`https://${a.hCb}`,u="https://creator-support.discord.com",c="https://support-apps.discord.com";function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return t+e}function _(){return i.default.locale.toLowerCase()}let f={getArticleURL:e=>d(`/hc/${_()}/articles/${e}`),getDevArticleURL:e=>d(`/hc/${_()}/articles/${e}`,l),getCreatorSupportArticleURL:e=>d(`/hc/${_()}/articles/${e}`,u),getTwitterURL:()=>(0,r.A)(a.Pq7.TWITTER),getCommunityURL:()=>d(`/hc/${_()}`),getSubmitRequestURL(e){let t=d(`/hc/${_()}/requests/new?platform=${encodeURIComponent((0,s.getPlatformName)())}`);return null!=e&&(t+=`&device_info=${encodeURIComponent(e)}`),t},getSearchURL(e){let t=encodeURIComponent(e);return d(`/hc/${_()}/search?utf8=%E2%9C%93&query=${t}&commit=Search`)},getFeaturedArticlesJsonURL:()=>d("/api/v2/help_center/en-us/articles.json?label_names=featured"),getAppsSupportURL:e=>d(`/hc/${_()}/articles/${e}`,c)}}