From 173e15292cd29f2a0e08abd1603218d94b70ee54 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 20:03:52 -0500 Subject: [PATCH] Fix substring --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 95223f5..9808adb 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,7 @@ client.on("message", message => { }); async function bulkDelete(message) { - const amount = message.content.substring(0, 12); + const amount = message.content.substring(12); if (!amount) { message.reply('please add the number of messages to be deleted!');