_Chri07_
_Chri07_
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Okay guys thank you so much for helping:)
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Okay thank you for helping, I can use the ai generated code as a base? I understand that maybe as chatGPT is outdated gives me the wrong code
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
But I know a bit about programming so I'm not really in a bad situation
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Yeah I know I'm sorry I was invited to this server by discord devs and I started approaching developing in js recently
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
To make a command to call the bot i have to insert it here after the /? const prefix = '/';
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
I saved the file and apparently works
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Now it works
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
How can I send you the entire code? I cannot in this message because it's too long
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
I tried
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Same error I think
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Maybe, as I said it's an AI generated code as I don't know much of js so could be.
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageReactionAdd,
],
});
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageReactionAdd,
],
});
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Okay I will, give me a minute
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
The code is too long to be sent by message
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Thanks, can I send you my intents list so you can tell me what is wrong?
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Hi, sorry again, i implemented my code but i have this error, what you think the problem is?
C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:172
throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);
^

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined.
at IntentsBitField.resolve (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:172:11)
at C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:167:54
at Array.map (<anonymous>)
at IntentsBitField.resolve (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:167:40)
at new BitField (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:33:38)
at new IntentsBitField (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\IntentsBitField.js:9:1)
at Client._validateOptions (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\client\Client.js:511:25)
at new Client (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\client\Client.js:78:10)
at Object.<anonymous> (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\index.js:4:16)
at Module._compile (node:internal/modules/cjs/loader:1241:14) {
code: 'BitFieldInvalid'
}

Node.js v20.6.1
C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:172
throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);
^

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined.
at IntentsBitField.resolve (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:172:11)
at C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:167:54
at Array.map (<anonymous>)
at IntentsBitField.resolve (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:167:40)
at new BitField (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\BitField.js:33:38)
at new IntentsBitField (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\util\IntentsBitField.js:9:1)
at Client._validateOptions (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\client\Client.js:511:25)
at new Client (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\node_modules\discord.js\src\client\Client.js:78:10)
at Object.<anonymous> (C:\Users\chris\OneDrive\Documenti\Desktop\bot presenze\index.js:4:16)
at Module._compile (node:internal/modules/cjs/loader:1241:14) {
code: 'BitFieldInvalid'
}

Node.js v20.6.1
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
Okay so you can confirm to me that the code is right and should work? If so and it doesn't work I will contact the discord devs again
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
No description
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
It says that token is assigned a value but never used and that the strings must be use singoequote
51 replies
DIAdiscord.js - Imagine an app
Created by _Chri07_ on 9/14/2023 in #djs-questions
Node js not starting
I saved them separately but now visual studio code tells me that there are multiple problems on the code
51 replies