From 874ad26c03492542ef312017b32b90745800d086 Mon Sep 17 00:00:00 2001 From: Mestima Date: Thu, 30 Mar 2023 04:52:56 +0300 Subject: [PATCH] clear command add reply deleting after 3 seconds --- src/commands/clear/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commands/clear/index.js b/src/commands/clear/index.js index d7dadd5..84ce521 100644 --- a/src/commands/clear/index.js +++ b/src/commands/clear/index.js @@ -22,5 +22,10 @@ export default { .setTitle(`Deleted ${amount} messages in total`) .setColor(interaction.member.displayColor); await interaction.reply({ embeds: [ embed ] }); + setTimeout(async () => { + try { + await interaction.deleteReply(); + } catch (e) {} + }, 3000); } };