Skip to content

Improved cooldowns.#56

Merged
Ayfri merged 13 commits intomasterfrom
feat/improvingCooldowns
Jan 17, 2021
Merged

Improved cooldowns.#56
Ayfri merged 13 commits intomasterfrom
feat/improvingCooldowns

Conversation

@Ayfri
Copy link
Member

@Ayfri Ayfri commented Jan 17, 2021

Cooldowns are now a collection containing for keys the snowflakes and for values an object, this object has for keys the commands in cooldowns, and for values the cooldown length and the date when the command has been executed.
With setCooldown you can set the cooldown for a user.
With getCooldown you can get the cooldown of a user and the time to wait in milliseconds.
With isInCooldown you can know if a user is in cooldown.

All this handling is added in the default message event.

@Ayfri Ayfri added the enhancement New feature or request label Jan 17, 2021
@Ayfri Ayfri self-assigned this Jan 17, 2021
@Ayfri Ayfri merged commit 39c5317 into master Jan 17, 2021
@Ayfri Ayfri deleted the feat/improvingCooldowns branch January 17, 2021 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant