chore: v2.9.5
- deps: downgrade axios (1.2.0 -> 1.1.x) - fix: checkUpdate func
This commit is contained in:
parent
942ad0714c
commit
ecc59912d0
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.9.4",
|
"version": "2.9.5",
|
||||||
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"types": "./typings/index.d.ts",
|
"types": "./typings/index.d.ts",
|
||||||
@ -59,7 +59,7 @@
|
|||||||
"@sapphire/shapeshift": "^3.7.0",
|
"@sapphire/shapeshift": "^3.7.0",
|
||||||
"@types/node-fetch": "^2.6.2",
|
"@types/node-fetch": "^2.6.2",
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.3",
|
||||||
"axios": "^1.2.0",
|
"axios": "1.1",
|
||||||
"bignumber.js": "^9.1.0",
|
"bignumber.js": "^9.1.0",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"discord-api-types": "^0.37.19",
|
"discord-api-types": "^0.37.19",
|
||||||
|
@ -562,11 +562,13 @@ class Client extends BaseClient {
|
|||||||
const res_ = await axios
|
const res_ = await axios
|
||||||
.get(`https://registry.npmjs.com/${encodeURIComponent('discord.js-selfbot-v13')}`)
|
.get(`https://registry.npmjs.com/${encodeURIComponent('discord.js-selfbot-v13')}`)
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
if (!res_) {
|
try {
|
||||||
return this.emit('debug', `${chalk.redBright('[Fail]')} Check Update error`);
|
const latest_tag = res_.data['dist-tags'].latest;
|
||||||
|
this.emit('update', Discord.version, latest_tag);
|
||||||
|
} catch {
|
||||||
|
this.emit('debug', `${chalk.redBright('[Fail]')} Check Update error`);
|
||||||
|
this.emit('update', Discord.version, false);
|
||||||
}
|
}
|
||||||
const latest_tag = res_.data['dist-tags'].latest;
|
|
||||||
this.emit('update', Discord.version, latest_tag);
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user