Stop Typing on Error

This commit is contained in:
Daniel Odendahl Jr
2017-05-09 17:13:35 +00:00
parent 256d94c9c0
commit 42ffd52c47
+2 -1
View File
@@ -56,7 +56,8 @@ client.on('message', async (msg) => {
return msg.reply(body.response)
.then(() => msg.channel.stopTyping());
} catch (err) {
return msg.reply(err);
return msg.reply(err)
.then(() => msg.channel.stopTyping());
}
} else return;
});