Don't remove !edit command if it fails
parent
4ecea31fd8
commit
0a98b5cb49
|
@ -755,6 +755,7 @@ class Thread {
|
|||
}
|
||||
|
||||
await this._updateThreadMessage(threadMessage.id, { body: newText });
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -44,8 +44,8 @@ module.exports = ({ bot, knex, config, commands }) => {
|
|||
return;
|
||||
}
|
||||
|
||||
await thread.editStaffReply(msg.member, threadMessage, args.text);
|
||||
msg.delete().catch(utils.noop);
|
||||
const edited = await thread.editStaffReply(msg.member, threadMessage, args.text);
|
||||
if (edited) msg.delete().catch(utils.noop);
|
||||
}, {
|
||||
aliases: ["e"]
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue