import{u as t,L as i,M as n}from"./DtdvSNjU.js";import{u as o,a}from"./CDtlEFvu.js";function l(e){const{$astroApiClient:s}=t();return o({queryKey:a(e),queryFn:r=>{if(r.queryKey[1]===void 0||r.queryKey[1]===null)throw Error("guild_id is undefined");return s.get_guild_settings(r.queryKey[1])},retry:(r,u)=>!(r>2||u instanceof i&&u.code==n.ASTRO_NOT_IN_GUILD&&e.value)})}export{l as u};