Removed le comments that made this less painful to read through. (also used to lead copilot to water somewhat.)
This commit is contained in:
@@ -43,10 +43,8 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set cooldown
|
|
||||||
cooldowns.set(userId, now + COOLDOWN_TIME);
|
cooldowns.set(userId, now + COOLDOWN_TIME);
|
||||||
|
|
||||||
// Optional cleanup
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
cooldowns.delete(userId);
|
cooldowns.delete(userId);
|
||||||
}, COOLDOWN_TIME);
|
}, COOLDOWN_TIME);
|
||||||
@@ -89,7 +87,6 @@ export default {
|
|||||||
}],
|
}],
|
||||||
flags: [MessageFlags.Ephemeral]
|
flags: [MessageFlags.Ephemeral]
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
if (!interaction.replied) {
|
if (!interaction.replied) {
|
||||||
|
|||||||
Reference in New Issue
Block a user