validate: Provide api version in req URL
This commit is contained in:
parent
9cd592d30f
commit
08ce6e6667
@ -7,7 +7,7 @@ const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
||||
async function validateCommunity(community) {
|
||||
while (true) {
|
||||
const req = await fetch(`https://discordapp.com/api/invite/${community.inviteCode}`);
|
||||
const req = await fetch(`https://discordapp.com/api/v6/invite/${community.inviteCode}`);
|
||||
const response = await req.json();
|
||||
|
||||
if (response.guild) break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user