Trying out isPrototypeOf() function

This commit is contained in:
MrMasrozYTLIVE 2024-06-14 17:02:26 +03:00
parent feff30fecc
commit 457bf01bc3

View File

@ -87,7 +87,8 @@ class Client extends EventEmitter {
} }
sendMessage(message) { sendMessage(message) {
console.log(message.prototype instanceof Message); console.log(message);
console.log(Message.isPrototypeOf(message));
console.log('Bot name:', this.botName); console.log('Bot name:', this.botName);
const data = message.toJsonString(); const data = message.toJsonString();