bump discord API version to v10

This commit is contained in:
Bram Hagens 2024-02-08 10:11:52 +01:00
parent 689117ac98
commit 9b1a5d4d26
No known key found for this signature in database
GPG key ID: CEF9728B2127ECDC

View file

@ -51,11 +51,11 @@ export function processURI (uri) {
}, },
proof: { proof: {
request: { request: {
uri: `https://discord.com/api/v9/invites/${match[1]}`, uri: `https://discord.com/api/v10/invites/${match[1]}`,
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
accessRestriction: E.ProofAccessRestriction.NOCORS, accessRestriction: E.ProofAccessRestriction.NOCORS,
data: { data: {
url: `https://discord.com/api/v9/invites/${match[1]}`, url: `https://discord.com/api/v10/invites/${match[1]}`,
format: E.ProofFormat.JSON format: E.ProofFormat.JSON
} }
}, },