ysdragon / StreamBot

A self bot to stream videos to Discord.
Other
96 stars 20 forks source link

Intents error (Windows) #12

Closed anlekg closed 11 months ago

anlekg commented 11 months ago

Hi ! I'm getting an Intent error on Windows while loading the bot :
image image All intents are enable... i tried to add intents to index.ts and rebuild but without success : image any ideas ?

TheSavageTaco commented 11 months ago

I'm running into the same issue, Ubuntu 22.04.3 LTS fresh install :

taco@discord-vm-server:~/youtubebot/StreamBot$ npm run start

> StreamBot@1.0.4 start
> npm run build && node ./dist/index.js

> StreamBot@1.0.4 build
> npx tsc

Available movies:

Server is running on port 8080
/home/taco/youtubebot/StreamBot/node_modules/discord.js-selfbot-v13/src/client/websocket/WebSocketManager.js:265
        throw new Error(WSCodes[error.code]);
              ^

Error [INVALID_INTENTS]: [Bot Token] Invalid intent provided for WebSocket intents.
    at WebSocketManager.createShards (/home/taco/youtubebot/StreamBot/node_modules/discord.js-selfbot-v13/src/client/websocket/WebSocketManager.js:265:15)
    at async Client.login (/home/taco/youtubebot/StreamBot/node_modules/discord.js-selfbot-v13/src/client/Client.js:341:7) {
  [Symbol(code)]: 'INVALID_INTENTS'
}

Node.js v19.8.1
ysdragon commented 11 months ago

I will check it!

ysdragon commented 11 months ago

I have noticed that you are using a Discord bot token. You should use a regular Discord user token. You can follow the steps outlined in the README.

ysdragon commented 11 months ago

Closed as resolved!