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

Update CommandHandler.ts #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Peter-MJ-Parker
Copy link

This change fixes a bug with the cooldowns map. I have only ran into it once but I tried to throw the error where the cooldown type is used outside of a guild with the user attached. It threw the error and tried to attach the expiry time of 7 minutes. When I have the dbRequired set to 5 minutes, it will try to input the info to mongo. Since it sent "ERROR" to the db, it also tried to input the time but it failed and sent a mongo error stating it could not insert a string to Date property.

This change fixes a bug with the cooldowns map. I have only ran into it once but I tried to throw the error where the cooldown type is used outside of a guild with the user attached. It threw the error and tried to attach the expiry time of 7 minutes. When I have the dbRequired set to 5 minutes, it will try to input the info to mongo. Since it sent "ERROR" to the db, it also tried to input the time but it failed and sent a mongo error stating it could not insert a string to Date property.
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

Successfully merging this pull request may close these issues.

1 participant