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
Type Error: Cannot read property 'send' of undefined #39
Comments
I am using the latest version of nuggies, I uninstalled, and reinstalled the package. It seems that when I restart the bot when there are giveaways running, the error comes up. I am able to host giveaways clearly, smoothly, and everything works fine. On restart of the bot however, the error comes up, and im not sure why, and how. |
I see where the problem is from, a document seems bugged in your database, It chooses a winner from the array but however the user doesnt exists in the guild so it returns the error. You can either search for |
let me know if you need anything else |
Oh ok, I will let you know if I experience any other problems. |
can I close this? |
You may close this |
Describe the bug
Type Error:
message.guild.members.cache.get(user).send(dmEmbed);
^
TypeError: Cannot read property 'send' of undefined
at \nuggies\src\classes\giveaways.js:109:43
To Reproduce
Simply just run a giveaway
Expected behavior
Supposed to run smoothly
Desktop
-Windows
Additional context
Was working fine a day ago, then I think after a new update in giveaways, a bug happened
The text was updated successfully, but these errors were encountered: