Skip to content

Commit

Permalink
update: api version
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4 authored Sep 6, 2024
1 parent 14295e7 commit 465f050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function validateCommunity(community, error, warn) {
await fs.stat(`./logos/${community.logo}`);

while (true) {
const req = await fetch(`https://discord.com/api/v9/invites/${community.inviteCode}?with_expiration=1`);
const req = await fetch(`https://discord.com/api/v10/invites/${community.inviteCode}?with_expiration=1`);
const response = await req.json();

if (response.retry_after) {
Expand Down

0 comments on commit 465f050

Please sign in to comment.