AlexzanderFlores / WOKCommands

132 stars 61 forks source link

Cooldowns Cross-Server not working. BUG + FIX #199

Open DiegoDaniel opened 2 years ago

DiegoDaniel commented 2 years ago

The "cooldown" attribute is not working as it should. I can run a command in one server, (1d cd) then switch to another server and i can run the command again.

The fix: image Changed this:

FILE: dist/Command.js

284) this._userCooldowns.set(${guildId}-${userId}, seconds); to 284) this._userCooldowns.set(userId, seconds);

And this: 291) this._userCooldowns.get(${guildId}-${userId}); to 291) this._userCooldowns.get(userId);