Skip to content
Advertisement

Discord.js Bulk Delete command

I am trying to add a bulk delete command to my bot but when I type how many messages I want to delete, I get the following error:

JavaScript

Here’s the code:

JavaScript

Advertisement

Answer

JavaScript

To use the parseInt(), you have to add the decimal base, so 10 -> parseInt(args[0], 10);. The snippet of code I have put above is working well.

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