mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01: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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user