mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user