3 l
13
robie sobie na kolanie bota dsc do puszczania muzyki bo potrzebuje na szybko takiego co będzie automatycznie pauzować muzykę w określonych godzinach, to mój pierwszy bot i z racji że goni mnie czas to kod pobrałem z githuba (https://github.com/pawel02/discord-js-music-bot) i chciałem tylko dopisać kompendę ,,autoPause,, ale taki chuj. Gdy chciałem odpalić bota jeszcze bez tej komendy żeby sprawdzić czy działa to pokazuje się nastepujący komunikat:
PS E:\Kody\BeaBot> node .
E:\Kody\BeaBot\index.js:16
intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES, Discord.Intents.FLAGS.GUILD_VOICE_STATES]
^
TypeError: Cannot read properties of undefined (reading 'FLAGS')
at Object. (E:\Kody\BeaBot\index.js:16:31)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922: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.13.0
nwm czym to jest spowodowane, szukałęm pomocy u chatGPT ale nic nie pomaga
PS E:\Kody\BeaBot> node .
E:\Kody\BeaBot\index.js:16
intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES, Discord.Intents.FLAGS.GUILD_VOICE_STATES]
^
TypeError: Cannot read properties of undefined (reading 'FLAGS')
at Object. (E:\Kody\BeaBot\index.js:16:31)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922: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.13.0
nwm czym to jest spowodowane, szukałęm pomocy u chatGPT ale nic nie pomaga