Delete command message after !edit/!delete

Consistency with !reply
cshd
Dragory 2020-08-17 02:02:19 +03:00
parent aff119549e
commit 4d42656c24
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,8 @@ module.exports = ({ bot, knex, config, commands }) => {
return; return;
} }
await thread.editStaffReply(msg.member, threadMessage, args.text) await thread.editStaffReply(msg.member, threadMessage, args.text);
msg.delete().catch(utils.noop);
}, { }, {
aliases: ["e"] aliases: ["e"]
}); });
@ -64,6 +65,7 @@ module.exports = ({ bot, knex, config, commands }) => {
} }
await thread.deleteStaffReply(msg.member, threadMessage); await thread.deleteStaffReply(msg.member, threadMessage);
msg.delete().catch(utils.noop);
}, { }, {
aliases: ["d"] aliases: ["d"]
}); });