mirror of
https://github.com/yuzu-emu/discord-open-source
synced 2024-11-24 08:28:15 +00:00
validate: Provide api version in req URL
This commit is contained in:
parent
9cd592d30f
commit
08ce6e6667
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue