mirror of
https://github.com/danbulant/discord.js
synced 2026-06-17 13:41:29 +00:00
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:
parent
2b1fcf168c
commit
72be5e6498
2 changed files with 2 additions and 2 deletions
|
|
@ -1624,7 +1624,7 @@ var InternalClient = (function () {
|
|||
|
||||
_this33.intervals.typing[channel.id] = setInterval(function () {
|
||||
return _this33.sendTyping(channel)["catch"](function (error) {
|
||||
return _this33.emit("error", error);
|
||||
return _this33.client.emit("error", error);
|
||||
});
|
||||
}, 4000);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue