Do not try to eat up request errors with catch as this will break rejection chain

This commit is contained in:
Laurynas Karvelis 2018-02-05 16:33:45 +02:00
parent 118e1ece30
commit 92f892a467

View File

@ -138,7 +138,7 @@ export default class Bot extends EventEmitter {
* @return {unknown} returns the result of calling message's send method
*/
send(message) {
return message.send(this).catch(console.error);
return message.send(this);
}
/**