Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DiegoDaniel opened this issue Jan 2, 2022 · 0 comments
Open

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

DiegoDaniel opened this issue Jan 2, 2022 · 0 comments

Comments

@DiegoDaniel
Copy link

DiegoDaniel commented Jan 2, 2022

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant