diff --git a/validate.js b/validate.js index 71ff690..4a0176c 100644 --- a/validate.js +++ b/validate.js @@ -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;