mirror of
https://github.com/Mestima/luna.git
synced 2025-05-06 06:00:14 +00:00
clear command add reply deleting after 3 seconds
This commit is contained in:
parent
4721f305ba
commit
874ad26c03
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user