Module 306522

991 characters · in 61dab1a48a1edf85.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(t,e,r){r.d(e,{Oo:()=>s,P0:()=>u,Qm:()=>o,bq:()=>h,oG:()=>l});var n=r(636537),a=r(913122),i=r(371794),c=r(652215);let o=async(t,e,r)=>{let{priceTier:i,imageName:o,createNewRole:s,unlinkRole:l,...h}=r;try{return(await n.Bo.patch({url:c.Rsh.GUILD_PRODUCT_LISTINGS(t,e),body:{...h,image_name:o,price_tier:i,create_new_role:s,unlink_role:l},rejectWithError:!1})).body}catch(t){throw new a.LG(t)}},s=async(t,e)=>{try{await n.Bo.del({url:c.Rsh.GUILD_PRODUCT_LISTINGS(t,e),rejectWithError:!1})}catch(t){throw new a.LG(t)}},l=async t=>{try{return(await (0,i.aP)({url:c.Rsh.GUILD_PRODUCT_LISTINGS(t),rejectWithError:!1})).body.listings}catch(t){throw new a.LG(t)}},h=async(t,e)=>{try{return(await (0,i.aP)({url:c.Rsh.GUILD_PRODUCT_LISTINGS(t,e),rejectWithError:!1})).body}catch(t){throw new a.LG(t)}},u=async t=>{let{guildId:e,productId:r,attachmentId:i}=t;try{return(await n.Bo.post({url:c.Rsh.GUILD_PRODUCT_ATTACHMENT_DOWNLOAD(e,r,i),rejectWithError:!1})).body}catch(t){throw new a.LG(t)}}}