Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Bitfiled #2

Closed
VampireTechnologyLord opened this issue Sep 2, 2021 · 3 comments
Closed

Permission Bitfiled #2

VampireTechnologyLord opened this issue Sep 2, 2021 · 3 comments

Comments

@VampireTechnologyLord
Copy link

When trying to start the bot, it says

PS D:\Dateien\Dev\LXABot> node index.js
D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:152
    throw new RangeError('BITFIELD_INVALID', bit);
    ^

RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number: undefined.
    at Function.resolve (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:152:11)
    at D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:147:54
    at Array.map (<anonymous>)
    at Function.resolve (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:147:40)
    at Client._validateOptions (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\client\Client.js:546:33)
    at new Client (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\client\Client.js:73:10)
    at Object.<anonymous> (D:\Dateien\Dev\LXABot\index.js:7:16)
    at Module._compile (node:internal/modules/cjs/loader:1109:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
    at Module.load (node:internal/modules/cjs/loader:989:32) {
  [Symbol(code)]: 'BITFIELD_INVALID'
}

I'd think this is because the permission integer wasnt set because there is no space for that. Please add one.

@VampireTechnologyLord
Copy link
Author

Sorry, i havent created the authentication yet

@VampireTechnologyLord
Copy link
Author

VampireTechnologyLord commented Sep 2, 2021

Doing just that sadly didnt fix the issue. My theory above is not correct, but if anyone can help me fix this problem, i would be very happy :)

@clqu
Copy link
Owner

clqu commented Sep 2, 2021

Check this; e4e2bcd

@clqu clqu closed this as completed Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants