improve function to resolve member
not actually used yet, waiting for upstream to implement it
This commit is contained in:
parent
82cbf40a22
commit
4e77b7c66c
4 changed files with 111 additions and 20 deletions
|
@ -99,6 +99,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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue