Do not try to eat up request errors with catch as this will break rejection chain
This commit is contained in:
parent
118e1ece30
commit
92f892a467
@ -138,7 +138,7 @@ export default class Bot extends EventEmitter {
|
|||||||
* @return {unknown} returns the result of calling message's send method
|
* @return {unknown} returns the result of calling message's send method
|
||||||
*/
|
*/
|
||||||
send(message) {
|
send(message) {
|
||||||
return message.send(this).catch(console.error);
|
return message.send(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user