Hi, iam having these errors after starting the bot. Could someone help me please?
Code:
C:\Users\User\Desktop\plugs\reportBot\Bot Files>node reportBot.js
(node:1152) UnhandledPromiseRejectionWarning: TypeError: client.guilds.find is not a function
at Client.<anonymous> (C:\Users\User\Desktop\plugs\reportBot\Bot Files\reportBot.js:44:24)
at Client.emit (events.js:315:20)
at WebSocketManager.triggerClientReady (C:\Users\User\Desktop\plugs\reportBot\Bot Files\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (C:\Users\User\Desktop\plugs\reportBot\Bot Files\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
at WebSocketShard.<anonymous> (C:\Users\User\Desktop\plugs\reportBot\Bot Files\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:315:20)
at WebSocketShard.checkReady (C:\Users\User\Desktop\plugs\reportBot\Bot Files\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
at WebSocketShard.onPacket (C:\Users\User\Desktop\plugs\reportBot\Bot Files\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)
at WebSocketShard.onMessage (C:\Users\User\Desktop\plugs\reportBot\Bot Files\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\User\Desktop\plugs\reportBot\Bot Files\node_modules\ws\lib\event-target.js:132:16)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1152) 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:1152) [DEP0018] DeprecationWarning: Unhandled promise rejections