So my bot works but i keep getting some error that makes my bot do almost nothing only the help command. Here is the error codes
Bot is ready!
(node:487) UnhandledPromiseRejectionWarning: TypeError: bot.guilds.array is not a function
Jump Toat Object.Events.onInitialization (/app/bot.js:977:30)
Jump Toat Object.Bot.preformInitialization (/app/bot.js:138:10)
Jump Toat Object.Bot.onReady (/app/bot.js:127:7)
at Client.emit (events.js:189:13)
at WebSocketManager.triggerClientReady (/rbd/pnpm-volume/37598354-32f8-4717-ac3d-be6163595ffe/node_modules/.registry.npmjs.org/discord.js/12.3.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (/rbd/pnpm-volume/37598354-32f8-4717-ac3d-be6163595ffe/node_modules/.registry.npmjs.org/discord.js/12.3.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10)
at WebSocketShard.shard.on.unavailableGuilds (/rbd/pnpm-volume/37598354-32f8-4717-ac3d-be6163595ffe/node_modules/.registry.npmjs.org/discord.js/12.3.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:189:13)
at WebSocketShard.checkReady (/rbd/pnpm-volume/37598354-32f8-4717-ac3d-be6163595ffe/node_modules/.registry.npmjs.org/discord.js/12.3.1/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12)
at WebSocketShard.onPacket (/rbd/pnpm-volume/37598354-32f8-4717-ac3d-be6163595ffe/node_modules/.registry.npmjs.org/discord.js/12.3.1/node_modules/discord.js/src/client/websocket/WebSocketShard.js:447:16)
(node:487) 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(). (rejection id: 1)
(node:487) [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.