#RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.

60 messages · Page 1 of 1 (latest)

jolly hinge
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

calm ingotBOT
#

guide Additional Information: Updating from v13 to v14
read more

wet cape
#

what?

#

@alpine quail ?

alpine quail
#

Your bitfield flag is invalid

#

Presumably because youre using v14

#

But are writing v13 code

wet cape
#

What do you mean?

#

My bot works normally, suddenly stopped

wet cape
alpine quail
#

npm ls discord.js

wet cape
#

cmd > npm ls discord.js yes?

alpine quail
#

yes, youre on 14.8

#

So you need to write v14 code, hence I linked the guide

wet cape
#

Sorry I don't understand, but I don't know how

#

This bot belongs to my server, I have 2000 people there and the server works a lot with the bot and now that it doesn't work for me is a problem

alpine quail
#

Did you recently upgrade from v13 to v14?

wet cape
#

I didn't do anything, something like two hours ago my bots just stopped working

alpine quail
#

And what did you do to try to fix that

#

Do you mean the issue in #769862166131245066 ?

wet cape
alpine quail
#

Okay so it seems you've probably downloaded v14 instead of v13, which you were on

wet cape
#

#769862166131245066 message

wet cape
wet cape
alpine quail
#

npm remove discord.js then npm install discord.js@13

#

Have to make sure you get the right update

wet cape
#

ok 1 m

#

C:\Users\Administrator\Desktop\ServerListAll>npm remove discord.js

removed 33 packages, and audited 1 package in 828ms

found 0 vulnerabilities

C:\Users\Administrator\Desktop\ServerListAll>npm install discord.js@13
npm WARN deprecated @discordjs/[email protected]: no longer supported
npm WARN deprecated @discordjs/[email protected]: no longer supported

added 26 packages, and audited 27 packages in 8s

found 0 vulnerabilities

C:\Users\Administrator\Desktop\ServerListAll>```
#
node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module 'quick.db'
Require stack:
- C:\Users\Administrator\Desktop\ServerListAll\index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (C:\Users\Administrator\Desktop\ServerListAll\index.js:5:10)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'C:\\Users\\Administrator\\Desktop\\ServerListAll\\index.js' ]
}

Node.js v18.15.0

C:\Users\Administrator\Desktop\ServerListAll>PAUSE
Press any key to continue . . .
alpine quail
#

Yeah quick.db is nothing to do with us

#

Install it I guess

wet cape
#

Why do I suddenly need this? Until now the bot didn't need and didn't use it.

alpine quail
#

Its your bot dude

#

It clearly uses quick.db

#

This has nothing at all to do with discord.js

wet cape
#

Got it, so should I download it?

#

You have link?

alpine quail
#

npm install it like everything else

#

Are you sure you wrote this bot

wet cape
#

I don't, my friend wrote

#

npm i quick.db

alpine quail
#

Why isnt your friend fixing it then

wet cape
#

He is not home...

#

Only returns at the end of the week

#

I told you, if I didn't have the server waiting for the bot I wouldn't be stressed but it's important to me.

#

There is no way to fix it?

alpine quail
#

Again, this isnt discord.js related

#

Install it if you want

wet cape
#

KK 😦

#
    at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\actions\InteractionCreate.js:48:33)
    at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:346:31)
    at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:482:22)
    at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:317:10)
    at WebSocket.onMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\ws\lib\event-target.js:199:18)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\ws\lib\websocket.js:1178:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\ws\lib\receiver.js:528:14) uncaughtException
TypeError: channel.isText is not a function
    at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\actions\InteractionCreate.js:48:33)
    at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:346:31)
    at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:482:22)
    at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:317:10)
    at WebSocket.onMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\ws\lib\event-target.js:199:18)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\ws\lib\websocket.js:1178:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (C:\Users\Administrator\Desktop\ServerListBot\node_modules\ws\lib\receiver.js:528:14) uncaughtException```
Is it related to the version?
opaque krakenBOT
wet cape
#

oh

opaque krakenBOT
#

Use v13.14.0 or newer of discord.js: npm i discord.js@v13-lts (more: #769862166131245066)

wet cape
#

Uncaught promise exception: TypeError: channel.isText is not a function

opaque krakenBOT
wet cape
#

TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.

#

throw new TypeError('CLIENT_MISSING_INTENTS');