From 8262bd4eb7954ccd0211e3ecc908c2c84b334164 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:04:08 +0300 Subject: [PATCH] Hm. Its pretty strange. Thats why i dont really like JavaScript --- chatBot/includes/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatBot/includes/Client.js b/chatBot/includes/Client.js index e1133e4..f223271 100644 --- a/chatBot/includes/Client.js +++ b/chatBot/includes/Client.js @@ -88,7 +88,7 @@ class Client extends EventEmitter { sendMessage(message) { console.log(message); - console.log(Message.isPrototypeOf(message)); + console.log(Object.prototype.isPrototypeOf.call(Message.prototype, message.prototype)); console.log('Bot name:', this.botName); const data = message.toJsonString();