Skip to content
Advertisement

How can I upgrade to Discord.js V13?

Im using Discord.js V13 and when i try to run the bot i get this error everytime.

Main File:

JavaScript

The error:

JavaScript

The solution here is that i can`t deconstruct the library from itself, and my mistake is that i needed to put only the intents that my bot needs.

My solution:

JavaScript

Advertisement

Answer

You cannot deconstruct the library from itself.

Either deconstruct the client:

JavaScript

Or utilitize the library entirely:

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