From 08ce6e66672c36334d3ae3436be462d8ef50e884 Mon Sep 17 00:00:00 2001 From: ivan k Date: Thu, 21 Feb 2019 14:00:49 -0800 Subject: [PATCH] validate: Provide api version in req URL --- validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;