diff --git a/bot.js b/bot.js index 4789a49..bd97f01 100644 --- a/bot.js +++ b/bot.js @@ -1027,7 +1027,7 @@ async function bulkDelete(message) { message.reply("you do not have high enough permissions!"); return; } - const amount = parseInt(message.content.substring(12)); + const amount = parseInt(message.content.split(" ")[1]); if (!amount) { message.reply('please add the number of messages to be deleted!');