From 457bf01bc3ebe0a6c6d5ab946b0d7aa2ec7c7715 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:02:26 +0300 Subject: [PATCH] Trying out isPrototypeOf() function --- chatBot/includes/Client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chatBot/includes/Client.js b/chatBot/includes/Client.js index 12b7436..e1133e4 100644 --- a/chatBot/includes/Client.js +++ b/chatBot/includes/Client.js @@ -87,7 +87,8 @@ class Client extends EventEmitter { } sendMessage(message) { - console.log(message.prototype instanceof Message); + console.log(message); + console.log(Message.isPrototypeOf(message)); console.log('Bot name:', this.botName); const data = message.toJsonString();