From 1d6361871c3a3c6c088f027f4083640e365cc761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 10 Sep 2021 01:54:43 +0300 Subject: [PATCH] Update Client.ts --- src/Client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index 4adad51..70e0095 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -107,7 +107,11 @@ class RadioClient extends Client { require(`${events}warning`).execute(this, warning); }); - this.login(this.config.token).catch(err => console.log("Failed to login: " + err)); + this.login(this.config.token).catch((err) => { + this.funcs.logger("Discord Client / Error"); + console.log(err); + console.log(''); + }); } }