From a0003871c2ee21e909fc2b011e53779b7f671611 Mon Sep 17 00:00:00 2001 From: ShuriZma Date: Fri, 7 Jun 2024 08:44:08 +0200 Subject: [PATCH] remove error callback in end() call --- src/bot.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index bd15cff..aec7c57 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -127,9 +127,7 @@ export class Bot { } public endConection() { - this.connection.end(function (err) { - console.log(err); - }); + this.connection.end(); } public static getInstance(): Bot {