Reworked message format, added support for audio messages, made Message class #10
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user