From 486e6afc70929e0855e9bc5dd04d3664d8ed66a3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 3 Apr 2017 21:09:24 +0000 Subject: [PATCH] Typing test --- commands/avataredit/3000years.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/avataredit/3000years.js b/commands/avataredit/3000years.js index 088eec36..fae4682a 100644 --- a/commands/avataredit/3000years.js +++ b/commands/avataredit/3000years.js @@ -25,6 +25,7 @@ module.exports = class YearsCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return; } console.log(`[Command] ${message.content}`); + message.channel.startTyping(); let user = args.user; let userAvatar = user.displayAvatarURL; userAvatar = userAvatar.replace(".jpg", ".png"); @@ -37,7 +38,10 @@ module.exports = class YearsCommand extends commando.Command { years.blit(avatar, 461, 127); years.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return message.say(':x: Error! Something went wrong!'); - return message.channel.sendFile(buff); + message.channel.sendFile(buff).then(snd => { + message.channel.stopTyping(); + return; + }); }); } };