Allow module consumers to deal with Promise rejections themselves #38

Merged
laurynas-karvelis merged 2 commits from master into master 2018-02-05 18:15:02 +00:00
Showing only changes of commit 92f892a467 - Show all commits

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);
}
/**