Skip to content
Permalink
Browse files

validate: Provide api version in req URL

  • Loading branch information...
SEAPUNK committed Feb 21, 2019
1 parent 9cd592d commit 08ce6e66672c36334d3ae3436be462d8ef50e884
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 08ce6e6

Please sign in to comment.
You can’t perform that action at this time.