Merhaba Hatamı fakettim ve düzelttim botu aktive ettim fakat bu sefer ready.js dosyasındaki kodlardan kaynaklanan bi hata ile karşı karşıyayım işte hata :
[2020-08-22 12:05:28] 1 komut yüklenecek.
[2020-08-22 12:05:28] Yüklenen komut: yaz.
[2020-08-22 12:05:29] BOT: Aktif, Komutlar yüklendi!
[2020-08-22 12:05:29] BOT: Hiraes ismi ile giriş yapıldı!
[2020-08-22 12:05:29] BOT: Oyun ismi ayarlandı!
(node:23148) UnhandledPromiseRejectionWarning: TypeError: client.user.setGame is not a function
at module.exports (C:\Users\user\Desktop\Talha Kaçar\Software\Hiraes\events\ready.js:12:15)
at Client.<anonymous> (C:\Users\user\Desktop\Talha Kaçar\Software\Hiraes\util\eventLoader.js:3:45)
at Client.emit (events.js:315:20)
at WebSocketManager.triggerClientReady (C:\Users\user\Desktop\Talha Kaçar\Software\Hiraes\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (C:\Users\user\Desktop\Talha Kaçar\Software\Hiraes\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
at WebSocketShard.<anonymous> (C:\Users\user\Desktop\Talha Kaçar\Software\Hiraes\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\Talha Kaçar\Software\Hiraes\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
at WebSocketShard.onPacket (C:\Users\user\Desktop\Talha Kaçar\Software\Hiraes\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)
at WebSocketShard.onMessage (C:\Users\user\Desktop\Talha Kaçar\Software\Hiraes\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
(node:23148) 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
Command line options | Node.js v14.8.0 Documentation). (rejection id: 1)
(node:23148) [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.
Bot aktive ediliyor kodlarıda çalışıyor ama yukarıda hata verilen botun codları çalışmıyor hata verdiği için yani ready.js dosyasındaki kodlar çalışmıyor maalesef.