ZerioDev / Music-bot

A complete code to download for a cool Discord music bot !
https://discord.gg/5cGSYV8ZZj
GNU General Public License v3.0
864 stars 1.05k forks source link

Token error #228

Closed discorbbotter closed 1 year ago

discorbbotter commented 2 years ago

C:\Users\Sunny and Aashritha\Downloads\Music-bot-master\Music-bot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:129 const invalidToken = new Error(WSCodes[4004]); ^

Error [TOKEN_INVALID]: An invalid token was provided. at WebSocketManager.connect (C:\Users\Sunny and Aashritha\Downloads\Music-bot-master\Music-bot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:129:26) at Client.login (C:\Users\Sunny and Aashritha\Downloads\Music-bot-master\Music-bot-master\node_modules\discord.js\src\client\Client.js:254:21) at Object. (C:\Users\Sunny and Aashritha\Downloads\Music-bot-master\Music-bot-master\main.js:21:8) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Module._load (node:internal/modules/cjs/loader:827:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 {

BYALEEC commented 2 years ago

same error..

BlobDeveloper commented 2 years ago

Are you sure you entered the correct token in config.js?

revot334 commented 2 years ago

image make sure your token is new and has not been regenerated by accident! also make sure your token is inside the ''

revot334 commented 1 year ago

please also make sure your token valid