@442097 Kod hatalı muhtemelen.

Merhabalar Discord botu yaparken Visual code da terminale Node.\index. js yazınca botum çevrimiçi olmuyor nedeni nedir?

İlk iki satırı bu şekilde değiştirir misiniz. const Discord = require ; const client = new Discord. Client ;

Const Discord=require ; Const Client = New Discord. Client ; Client. On("message", message=> ) Altta Client ve tokenim yazıyor Terminali açınca Windows PowerShell. Copyright Microsoft corporation. All rights reserved. Try the New cross-platform PowerShell Installing PowerShell - PowerShell PS C:\Users\EXPER> CD. PS C:\Users\EXPER> CD.\desktop\ PS C:\Users\EXPER\Desktop> CD.\botdiscord\ PS C:\Users\EXPER\Desktop\BotDiscord> Node index. js C:\Users\EXPER\Desktop\BotDiscord\node_modules\discord. js\src\client\Client. js:544 Throw New typeerror ; ^ Typeerror : Valid intents must be provided for the Client. At Client. _validateoptions (C:\Users\EXPER\Desktop\BotDiscord\node_modules\discord. js\src\client\Client. js:544:13) At New Client (C:\Users\EXPER\Desktop\BotDiscord\node_modules\discord. js\src\client\Client. js:73:10) At object.<anonymous> (C:\Users\EXPER\Desktop\BotDiscord\index. js:3:14) At module. _compile (node:internal/modules/cjs/loader:1101:14) At Object. Module. _extensions.. js (node:internal/modules/cjs/loader:1153:10) At module. Load (node:internal/modules/cjs/loader:981:32) At function. Module. _load (node:internal/modules/cjs/loader:822:12) At function. Executeuserentrypoint (node:internal/modules/run_main:79:12) At node:internal/main/run_main_module:17:47 PS C:\Users\EXPER\Desktop\BotDiscord> Böyle olmaya devam ediyor. ve botum çevrimiçi olmuyor

Bundan daha fazla bilgi vermeniz gerek.

Node.\index. js değil node index. js

Herhalde intentlerle alakalı bir hata var.

Hocam sadece "node index. js" yazsanız yeter.

Logları atar mısınız? Nasıl bir hata veriyor ?