xMaster25
Femtopat
- Katılım
- 2 Eylül 2020
- Mesajlar
- 2
Merhabalar kendi Discord sunucum için bir Discord botu yapmaya karar verdim fakat botu ne yapsam bir türlü çalıştıramadım terminali açtığımda Node discordbot.js yazıyorum fakat karşıma söyle bir hata çıkıyor;
==============================================================================================================(Node: 6236) unhandledpromiserejectionwarning: Error [TOKEN_INVALID]: An invalid token was provided.
At websocketmanager. Connect (C:\Users\ensar\Desktop\dcbot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:133:26)
At Client. Login (C:\Users\ensar\Desktop\dcbot\node_modules\discord.js\src\client\Client.js:222:21)
(Use 'Node --trace-warnings ...' To show where the warning was created)
(Node: 6236) 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.9.0 Documentation). (rejection id: 1)
(Node: 6236) [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.
==============================================================================================================
Bu hatayı nasıl çözeceğim yardımcı olur musunuz şimdiden yardımcı olacak kişilere teşekkür ederim.
==============================================================================================================(Node: 6236) unhandledpromiserejectionwarning: Error [TOKEN_INVALID]: An invalid token was provided.
At websocketmanager. Connect (C:\Users\ensar\Desktop\dcbot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:133:26)
At Client. Login (C:\Users\ensar\Desktop\dcbot\node_modules\discord.js\src\client\Client.js:222:21)
(Use 'Node --trace-warnings ...' To show where the warning was created)
(Node: 6236) 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.9.0 Documentation). (rejection id: 1)
(Node: 6236) [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.
==============================================================================================================
Bu hatayı nasıl çözeceğim yardımcı olur musunuz şimdiden yardımcı olacak kişilere teşekkür ederim.