#RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.
60 messages · Page 1 of 1 (latest)
Your bitfield flag is invalid
Presumably because youre using v14
But are writing v13 code
How can I check?
npm ls discord.js
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
Did you recently upgrade from v13 to v14?
I didn't do anything, something like two hours ago my bots just stopped working
And what did you do to try to fix that
Do you mean the issue in #769862166131245066 ?
I tried to check if there was a problem with the bot's code, and I downloaded JS again
Okay so it seems you've probably downloaded v14 instead of v13, which you were on
#769862166131245066 message
My other bots started having this problem
So how do I download the previous one?
npm remove discord.js then npm install discord.js@13
Have to make sure you get the right update
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 . . .
Why do I suddenly need this? Until now the bot didn't need and didn't use it.
Its your bot dude
It clearly uses quick.db
This has nothing at all to do with discord.js
Why isnt your friend fixing it then
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?
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?
Use v13.14.0 or newer of discord.js: npm i discord.js@v13-lts (more: #769862166131245066)
oh
Use v13.14.0 or newer of discord.js: npm i discord.js@v13-lts (more: #769862166131245066)
Uncaught promise exception: TypeError: channel.isText is not a function
Use v13.14.0 or newer of discord.js: npm i discord.js@v13-lts (more: #769862166131245066)
Additional Information: Updating from v13 to v14
