Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EngineerShawn committed Nov 22, 2023
2 parents 6be92a2 + f65d682 commit 24b76ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/nova-ai-discord/src/structures/verifyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ module.exports = config => {
}
};
function authorization(url) {
const botInvRegex = /^https:\/\/discord\.com\/oauth2\/authorize$/;
const botInvRegex = /^https:\/\/discord\.com\/api\/oauth2\/authorize\?client_id=\d+&permissions=\d+&redirect_uri=https%3A%2F%2Fnovaai\.engineerpatterson\.com%2Foauth2%2Fcallback&response_type=code&scope=[\w%20\.]+/;
return botInvRegex.test(url);
}

0 comments on commit 24b76ad

Please sign in to comment.