improve function to resolve member

not actually used yet, waiting for upstream to implement it
This commit is contained in:
MathMan05
2024-08-10 15:44:08 -05:00
parent 82cbf40a22
commit 4e77b7c66c
4 changed files with 111 additions and 20 deletions

View File

@@ -92,6 +92,7 @@ class Member{
}
return memb;
}
guild.localuser.resolvemember(id.id,guild.id).then(console.log);
const prom1= fetch(guild.info.api.toString()+"/users/"+id+"/profile?with_mutual_guilds=true&with_mutual_friends_count=true&guild_id="+guild.snowflake,{headers:guild.headers})
prom1.catch(_=>{console.log(_)})
const promoise=prom1.then(_=>_.json()).then(json=>{