- 222
- 35
D:\jumplet by skaletz\bot.js:2
const robot = new Client({ intents: [Intents.FLAGS.GUILDS] });; // Объявляем, что robot - бот
^
ReferenceError: Client is not defined
at Object. (D:\jumplet by skaletz\bot.js:2:15)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
что делать?
const robot = new Client({ intents: [Intents.FLAGS.GUILDS] });; // Объявляем, что robot - бот
^
ReferenceError: Client is not defined
at Object. (D:\jumplet by skaletz\bot.js:2:15)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
что делать?