I think i did it yay

This commit is contained in:
MrMasrozYTLIVE 2024-06-14 17:09:30 +03:00
parent 2ff9c73585
commit d5650a9d7b

View File

@ -87,8 +87,7 @@ class Client extends EventEmitter {
}
sendMessage(message) {
console.log(message instanceof Message);
console.log(message instanceof TextMessage);
if(!(message instanceof Message)) return console.log(`message does not extend Message class (TextMessage, FileMessage, AudioMessage).`, message);
console.log('Bot name:', this.botName);
const data = message.toJsonString();