clear command add reply deleting after 3 seconds

This commit is contained in:
Mestima 2023-03-30 04:52:56 +03:00
parent 4721f305ba
commit 874ad26c03

View File

@ -22,5 +22,10 @@ export default {
.setTitle(`Deleted ${amount} messages in total`) .setTitle(`Deleted ${amount} messages in total`)
.setColor(interaction.member.displayColor); .setColor(interaction.member.displayColor);
await interaction.reply({ embeds: [ embed ] }); await interaction.reply({ embeds: [ embed ] });
setTimeout(async () => {
try {
await interaction.deleteReply();
} catch (e) {}
}, 3000);
} }
}; };