From d74d18e23e64136152b42df6969e8445ea1a6a22 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 7 May 2021 10:31:35 -0500 Subject: [PATCH] Use split instead of substring for bulkDelete --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!');