From 42ffd52c47de7b9790000eab8f1e75054115b06e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 9 May 2017 17:13:35 +0000 Subject: [PATCH] Stop Typing on Error --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 04ff149d..0bf2d240 100644 --- a/index.js +++ b/index.js @@ -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; });