From 4d42656c24c8dbc5b7aeea462f3c62d1b8b6a5d0 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 17 Aug 2020 02:02:19 +0300 Subject: [PATCH] Delete command message after !edit/!delete Consistency with !reply --- src/modules/reply.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/reply.js b/src/modules/reply.js index 146469e..a26f531 100644 --- a/src/modules/reply.js +++ b/src/modules/reply.js @@ -44,7 +44,8 @@ module.exports = ({ bot, knex, config, commands }) => { return; } - await thread.editStaffReply(msg.member, threadMessage, args.text) + await thread.editStaffReply(msg.member, threadMessage, args.text); + msg.delete().catch(utils.noop); }, { aliases: ["e"] }); @@ -64,6 +65,7 @@ module.exports = ({ bot, knex, config, commands }) => { } await thread.deleteStaffReply(msg.member, threadMessage); + msg.delete().catch(utils.noop); }, { aliases: ["d"] });