Maseshi / Shioru

🧸 (Discord) Your personal assistant that will make your discord never lonely again.
https://shiorus.web.app
MIT License
153 stars 22 forks source link

Bot gives this error after running #9

Closed friskyland closed 1 year ago

friskyland commented 1 year ago

[2022-10-29.13:15:45] :: Uncaught Exception Monitor Full Error: TypeError: Cannot read properties of undefined (reading '1044723283729330176') at settingsData (D:\vobobeta\shioru\source\utils\databaseUtils.js:267:43) at module.exports (D:\vobobeta\shioru\source\events\message\messageCreate.js:23:9) at Client.emit (node:events:394:28) at MessageCreateAction.handle (D:\vobobeta\shioru\node_modules\discord.js\src\client\actions\MessageCreate.js:28:14) at Object.module.exports [as MESSAGE_CREATE] (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31) at WebSocketShard.onPacket (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22) at WebSocketShard.onMessage (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10) at callListener (D:\vobobeta\shioru\node_modules\ws\lib\event-target.js:290:14) at WebSocket.onMessage (D:\vobobeta\shioru\node_modules\ws\lib\event-target.js:209:9) uncaughtException Error: TypeError: Cannot read properties of undefined (reading '1044723283729330176') Origin: uncaughtException Package: v3.1.0 Discord.js: v14.6.0 Node.js: v16.9.0

Maseshi commented 1 year ago

Bot cannot find data by guild ID. It is possible that the data in the database may not exist or has been deleted. In the future I will fix this issue.

The basic workaround is to manually add the data in the database.:

"projects": {
  "shioru": {
    "guilds": {
      "YOUR_GUILD_ID": {
        ...
      }
    }
  }
}

Thank you for reporting the problem to me. 😊