Cannot read properties of undefined (reading 'Guilds')

C:\Users\Administrator2\Desktop\discordbots\Core-main>node index.js
C:\Users\Administrator2\Desktop\discordbots\Core-main\index.js:7
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
                                                        ^

TypeError: Cannot read properties of undefined (reading 'Guilds')
    at Object.<anonymous> (C:\Users\Administrator2\Desktop\discordbots\Core-main\index.js:7:57)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.16.1


Code: https://srcb.in/8sj7eDrmfO
Was this page helpful?