View/Edit: Add option to direct edit from character views

This commit is contained in:
2022-09-18 01:21:10 +02:00
parent 60f4c51353
commit 0afedc86e5
2 changed files with 4 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ module.exports = {
collector.on('collect', async (m) => {
console.log(`Collected ${m.customId}`);
if (m.customId === `edit-char-${character.id}`) {
await m.reply({ content: "Editing not implemented", ephemeral: true });
await edit.execute(m, 'character', character.id);
}
});
}