Update the drop mechanic to take currency on drop instead of claim #428

Merged
Vylpes merged 9 commits from feature/CD-415 into develop 2025-05-16 17:37:58 +01:00
Showing only changes of commit 6ed4c5084b - Show all commits

View file

@ -23,10 +23,10 @@ export default class Claim extends ButtonEvent {
const userId = interaction.user.id;
const whenDropped = interaction.message.createdAt;
const lastClaimableDate = new Date(Date.now() - (1000 * 60 * 5)); // 5 minutes ago
const lastClaimableDate = new Date(Date.now() - (1000 * 60 * 2)); // 2 minutes ago
if (whenDropped < lastClaimableDate) {
await interaction.channel.send(`${interaction.user}, Cards can only be claimed within 5 minutes of it being dropped!`);
await interaction.channel.send(`${interaction.user}, Cards can only be claimed within 2 minutes of it being dropped!`);
return;
}