dank074/Discord-video-stream

Error [INVALID_INTENTS]

Closed this issue · 3 comments

Rstacx commented

I use your example. How to fix this?

/root/live-bot/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 (/root/live-bot/node_modules/discord.js-selfbot-v13/src/client/websocket/WebSocketManager.js:265:15)
    at async Client.login (/root/live-bot/node_modules/discord.js-selfbot-v13/src/client/Client.js:344:7) {
  [Symbol(code)]: 'INVALID_INTENTS'
}```

Video only works for self bots, and self bots dont need to declare intents. Are you using a user token?

Rstacx commented

Video only works for self bots, and self bots dont need to declare intents. Are you using a user token?

I try with bot token. Of course this error is coming?

I try with bot token. Of course this error is coming?

Again, you MUST use a user token because bots are not allowed to stream video