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 });
|
await this._updateThreadMessage(threadMessage.id, { body: newText });
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -44,8 +44,8 @@ module.exports = ({ bot, knex, config, commands }) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await thread.editStaffReply(msg.member, threadMessage, args.text);
|
const edited = await thread.editStaffReply(msg.member, threadMessage, args.text);
|
||||||
msg.delete().catch(utils.noop);
|
if (edited) msg.delete().catch(utils.noop);
|
||||||
}, {
|
}, {
|
||||||
aliases: ["e"]
|
aliases: ["e"]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue