cooldowns: Collection<string, CooldownUser> = ...

The cooldowns mapped by ID and cooldown user.

A simple explication :
When a user executes a command with a cooldown, a new value is added.

[anyID]: {
[commandName]: {
executedAt: Date,
cooldown: [command cooldown]
}
}

So cooldowns are mapped by IDs (can be anything, user IDs recommended) then mapped by commands.

Generated using TypeDoc