Looking for a developer who is experienced in Javascript & Discord api.
Budget: $5 – $6 USD
Hi, guys.
I have some discord links(over 200) and i want to get discord member's count from link.
I tried it, but i'm getting error.
Can you please solve this issue?
I have source code.
here is code.
for(let i = 0 ; i < discord_links.length ; i ++) {
let discord_link = discord_links[i];
let [id] = discord_link.split('/').slice(-1);
let resData = await axios.get(`https://discord.com/api/invites/${id}?with_counts=true`, {
headers: {
Authorization: `Bot ${Config.discord_bot_key}`,
"X-RateLimit-Limit": 9999,
"X-RateLimit-Remaining": 9999,
"X-RateLimit-Reset": Date.now(),
"X-RateLimit-Bucket": Date.now().toString(),
}
})
discord_members = resData.data.approximate_member_count;
}
I have also attached the discord link's file.
Most important thing is; i want to get multiple discord members at a once.(in a loop)
When i try to get discord members from only one discord url, it is working.
but if i try to get discord members from multiple discord url(in a loop), then it is not working properly.
This is fixed budget, 5 USD.
If you can fix this issue, please put I can fix this issue within your budget.
Sincerely
I have some discord links(over 200) and i want to get discord member's count from link.
I tried it, but i'm getting error.
Can you please solve this issue?
I have source code.
here is code.
for(let i = 0 ; i < discord_links.length ; i ++) {
let discord_link = discord_links[i];
let [id] = discord_link.split('/').slice(-1);
let resData = await axios.get(`https://discord.com/api/invites/${id}?with_counts=true`, {
headers: {
Authorization: `Bot ${Config.discord_bot_key}`,
"X-RateLimit-Limit": 9999,
"X-RateLimit-Remaining": 9999,
"X-RateLimit-Reset": Date.now(),
"X-RateLimit-Bucket": Date.now().toString(),
}
})
discord_members = resData.data.approximate_member_count;
}
I have also attached the discord link's file.
Most important thing is; i want to get multiple discord members at a once.(in a loop)
When i try to get discord members from only one discord url, it is working.
but if i try to get discord members from multiple discord url(in a loop), then it is not working properly.
This is fixed budget, 5 USD.
If you can fix this issue, please put I can fix this issue within your budget.
Sincerely