v8 - Emit error event on sendTyping falures instead of failing silently (#769)

* Properly emit error on sendTyping failure.

* Properly emit error on sendTyping failure.
This commit is contained in:
Jacob
2016-10-03 17:44:17 -04:00
committed by abal
parent 2b1fcf168c
commit 72be5e6498
2 changed files with 2 additions and 2 deletions

View File

@@ -1405,7 +1405,7 @@ export default class InternalClient {
this.intervals.typing[channel.id] = setInterval(
() => this.sendTyping(channel)
.catch(error => this.emit("error", error)),
.catch(error => this.client.emit("error", error)),
4000
);