forked from snxraven/LinkUp-P2P-Chat
I think i did it yay
This commit is contained in:
parent
2ff9c73585
commit
d5650a9d7b
@ -87,8 +87,7 @@ class Client extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sendMessage(message) {
|
sendMessage(message) {
|
||||||
console.log(message instanceof Message);
|
if(!(message instanceof Message)) return console.log(`message does not extend Message class (TextMessage, FileMessage, AudioMessage).`, message);
|
||||||
console.log(message instanceof TextMessage);
|
|
||||||
|
|
||||||
console.log('Bot name:', this.botName);
|
console.log('Bot name:', this.botName);
|
||||||
const data = message.toJsonString();
|
const data = message.toJsonString();
|
||||||
|
Loading…
Reference in New Issue
Block a user