You can edit a message sent by the bot, just by putting the message id, the channel id and whatever else you want to put in place of the message. Register the /edit command at https://autocode.com/tools/discord/command-builder/.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let messageId = context.params.event.data.options[0].value; // required
let editmessage = context.params.event.data.options[1].value; // required
let channelId = context.params.event.data.options[2].value; // required
await lib.discord.channels['@0.2.1'].messages.update({
message_id: `${messageId}`, // The ID of the message we want to edit
channel_id: `${channelId}`, // The ID of the channel where the message is
content: `${editmessage}`, // The message that will replace the previous one
});