Skip to content
Advertisement

Intents keep giving me a error even though the intents code is a C&P from a working bot

I have tried this which is a copy of existing code from another one of my bots that works but when i run it i get a error saying “Intents is not defined”

JavaScript

Error:

JavaScript

Advertisement

Answer

Simply, you should define the Intents by doing this:

JavaScript

Edit: You dont need to use Discord on discord.js v13 since its not needed, instead do it like this:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement