I updated my Invitesettings command file and my inviteStart event file with the most recent updated files you have on your github and now I get this error every time I run the command. (Never got it before updating)
error >>> TypeError: Cannot set property '<MY_SERVER_ID_HERE>' of undefined
Here is my bots log.
TypeError: Cannot set property '<MY_SERVER_ID_HERE>' of undefined
? at eval (eval at Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10), :16:29)
? at Object.Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10)
? at Object.action [as Run Script] (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\actions\run_script.js:287:12)
? at Object.Actions.invokeActions (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:502:18)
? at Object.Actions.preformActions (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:391:8)
? at Object.Bot.checkCommand (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:182:12)
? at Object.Bot.onMessage (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:165:13)
? at Client.emit (events.js:311:20)
? at MessageCreateAction.handle (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
? at Object.module.exports [as MESSAGE_CREATE] (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
?
Any fixes or help with this?
I have updated and re installed all the DBM node modules and updated and refreshed all the action, events, etc. folders too and this error still happens after running the invite settings command.
It also seems like none of the other invite manager commands are working...
inviteuser (user) gives me this error >>> (node:24492) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'invitedData' of undefined
Here is my bots log after running the inviteuser/inviteplayer
command.
//(I still git this error even if I keep 'player' as the command name instead of changing it to user)
(node:24492) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'invitedData' of undefined
at main (eval at Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10), <anonymous>:32:42)
at eval (eval at Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10), <anonymous>:27:9)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:24492) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:24492) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
invitetop gives me this error >>> (node:20956) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'inviterData' of undefined
here is my log after running invitetop
(node:20956) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'inviterData' of undefined
at main (eval at Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10), <anonymous>:6:23)
at eval (eval at Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10), <anonymous>:53:5)
at Object.Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10)
at Object.action [as Run Script] (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\actions\run_script.js:287:12)
at Object.Actions.invokeActions (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:502:18)
at Object.Actions.preformActions (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:391:8)
at Object.Bot.checkCommand (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:182:12)
at Object.Bot.onMessage (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:165:13)
at Client.emit (events.js:311:20)
at MessageCreateAction.handle (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
(node:20956) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:20956) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
inviteinfo (link) gives me this error >>> TypeError: Actions.fetchDatabase is not a function
Here is my log after running the inviteinfo (link)
command
TypeError: Actions.fetchDatabase is not a function
at eval (eval at Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10), <anonymous>:5:37)
at Object.Actions.eval (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:344:10)
at Object.action [as Run Script] (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\actions\run_script.js:287:12)
at Object.Actions.callNextAction (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:547:18)
at Object.action [as Store Message Params] (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\actions\store_message_params_MOD.js:228:10)
at Object.Actions.invokeActions (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:502:18)
at Object.Actions.preformActions (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:391:8)
at Object.Bot.checkCommand (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:182:12)
at Object.Bot.onMessage (C:\Users\<name>\OneDrive\Desktop\Bot_invitesettings_updated\bot.js:165:13)
at Client.emit (events.js:311:20)
These errors seem to all be stemming from the invitesettings. I had a backup and updated just the inviteStart event and the version check files and no issues. But after updating the invitesettings file...all of this.
Please let me know if you come across anything or have pushed a new update/fix.
For now..I will not be updating until this is fixed. Hopefully these errors can help you out with fixing this issue.