From 1ff8931484cdcf26bd3abeebbe0818f2effcffe7 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Sun, 31 Mar 2024 15:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20use=20refreshToken=20if=20exists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/Bot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/Bot.ts b/src/classes/Bot.ts index b32fe464c..0104b4a51 100644 --- a/src/classes/Bot.ts +++ b/src/classes/Bot.ts @@ -887,10 +887,10 @@ export default class Bot { return callback(null); }); }, - (callback): void => { + async (callback): Promise => { log.info('Signing in to Steam...'); - this.login() + this.login(await this.getRefreshToken()) .then(() => { log.info('Signed in to Steam!');