Skip to content

Commit

Permalink
chore: bump version to 3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aiko-chan-ai committed Jan 21, 2025
1 parent 171d7e5 commit 6301bab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/main.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord.js-selfbot-v13",
"version": "3.5.0",
"version": "3.5.1",
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js",
"types": "./typings/index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions src/client/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,14 +714,12 @@ class Client extends BaseClient {
* @example
* client.authorizeURL(`https://discord.com/api/oauth2/authorize?client_id=botID&permissions=8&scope=applications.commands%20bot`, {
guild_id: "guildID",
permissions: "62221393", // your permissions
authorize: true
})
*/
authorizeURL(urlOAuth2, options = {}) {
// ! throw new Error('METHOD_WARNING');
const url = new URL(urlOAuth2);
if (!/https:\/\/(canary\.|ptb\.)?discord.com\/api(\/v\d{1,2})?\/oauth2\/authorize\?/.test(urlOAuth2)) {
if (!/^https:\/\/(?:canary\.|ptb\.)?discord\.com(?:\/api(?:\/v\d{1,2})?)?\/oauth2\/authorize\?/.test(urlOAuth2)) {
throw new Error('INVALID_URL', urlOAuth2);
}
const searchParams = Object.fromEntries(url.searchParams);
Expand Down

0 comments on commit 6301bab

Please sign in to comment.