Skip to content

For Some Reason I Get A "MODULE_NOT_FOUND" error when i build my bot #8404

Closed Answered by D4isDAVID
Gamer069 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to add intents to your Client constructor:

- 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

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@Gamer069
Comment options

@Gamer069
Comment options

Comment options

You must be logged in to vote
8 replies
@Gamer069
Comment options

@D4isDAVID
Comment options

@Gamer069
Comment options

@Gamer069
Comment options

@tipakA
Comment options

Answer selected by Gamer069
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants