Skip to content
Advertisement

Tag: discord.js

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: The error: 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: Answer You cannot deconstruct the library from itself. Either

Guild.commands is undefined in discord.js v12.5.3

So I’m using discord.js version 12.5.3 to rebuild a music bot I did a while back. I’m trying to use slash commands but when I use guild.commands.set([commands]) it says that guild.commands is undefined. Here’s that part of my code. Answer Guild.commands was only introduced in v13. In v12, the way to create slash commands is using commands.post(). This answer may

Catching an permission error problem discord.js?

I’m having an issue trying to catch an error. The error I’m wanting to catch is a 403 discord Missing Permission error. However instead of catching the error it’s causing my bot to go offline when the error occurs. Here is how I’m trying to catch my error. Help appreciated. Answer TextChannel.send() and GuildMemberManager.ban() return a Promise, which means that

Advertisement