fix: Still showing log even though checkUpdate is false

This commit is contained in:
Elysia
2023-05-22 19:02:17 +07:00
parent 4b329c8105
commit c902304236
2 changed files with 13 additions and 13 deletions
+1
View File
@@ -536,6 +536,7 @@ class Client extends BaseClient {
try {
const latest_tag = res_.data['dist-tags'].latest;
this.emit('update', Discord.version, latest_tag);
this.emit('debug', `${chalk.greenBright('[OK]')} Check Update success`);
} catch {
this.emit('debug', `${chalk.redBright('[Fail]')} Check Update error`);
this.emit('update', Discord.version, false);