-
I tried to make a bot with discord.js, but when I built it using 'node run main.js', for some reason I get a "MODULE_NOT_FOUND" error, and the error is: Error: Cannot find module 'dir/run' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
try using |
Beta Was this translation helpful? Give feedback.
-
You need to add intents to your - const bot = new Discord.Client();
+ const bot = new Discord.Client({ intents: [/*...*/] }); It can stay as an empty array if you don't need any intents |
Beta Was this translation helpful? Give feedback.
You need to add intents to your
Client
constructor:It can stay as an empty array if you don't need any intents