Loading
function(e,n,l){l.d(n,{Je:()=>u,OH:()=>a,fx:()=>o,zf:()=>s});var t=l(636537),i=l(73153),r=l(652215);function u(e){return t.Bo.get({url:r.Rsh.GUILD_VANITY_URL(e),oldFormErrors:!0,rejectWithError:!0}).then(e=>{let{body:{code:n,uses:l,error:t}}=e;i.h.dispatch({type:"GUILD_SETTINGS_SET_VANITY_URL",code:n,uses:l,error:t})})}function o(){i.h.dispatch({type:"GUILD_SETTINGS_VANITY_URL_RESET"})}function a(e){i.h.dispatch({type:"GUILD_SETTINGS_VANITY_URL_SET",code:e})}function s(e,n,l){return t.Bo.patch({url:r.Rsh.GUILD_VANITY_URL(e),body:{code:n},oldFormErrors:!0,rejectWithError:(0,t.fT)()}).then(e=>{let{body:{code:n,uses:l}}=e;i.h.dispatch({type:"GUILD_SETTINGS_SET_VANITY_URL",code:n,uses:l})},e=>{if(i.h.dispatch({type:"GUILD_SETTINGS_VANITY_URL_ERROR",error:e.body}),l?.throwErr)throw e;return e})}}