Module 306522

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