command cooldown discord.js each users not all code example
Example: super cooldown discord.js
If you create an object of cooldowns you can get how much time they would have left by subtracting the date from the cooldown.
Like so:
var cooldowns = {}
var minute = 60000;
var hour = minute * 24;
cooldowns[message.author.id] = Date.now() + hour * 24;
if(cooldowns[message.author.id]){
if(cooldowns[message.author.id] > Date.now()) delete cooldowns[message.author.id];
else console.log("user still has " + Math.round((cooldowns[message.author.id] - Date.now)/minute) + " minutes left")
}