diff --git a/src/Command.ts b/src/Command.ts index 07fc22f..0ea5ec3 100644 --- a/src/Command.ts +++ b/src/Command.ts @@ -131,6 +131,22 @@ export class Command { await interaction.reply(fnResult); } else if (fnResult instanceof MessageEmbed) { await interaction.reply({ embeds: [fnResult] }); + } else if (!interaction.replied) { + try { + await interaction.reply({ + embeds: [ + new MessageEmbed() + .setColor("#00ff00") + .setTitle( + "✅ Task completed successfully" + ), + ], + }); + } catch (e) { + console.log( + "Cannot reply. The interaction has been closed" + ); + } } } } else {