From 01282d183a18f82c7bba149fd71fc72dd6886bd8 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 19:58:24 -0500 Subject: [PATCH] Add return statements to bulkDelete --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index f0e9754..c903480 100644 --- a/index.js +++ b/index.js @@ -30,10 +30,12 @@ async function bulkDelete(message) { if (!Number.isInteger(amount)) { message.reply('the number is not an integer!'); + return; } if (amount > 250 && amount < 1) { message.reply('the number is too large! It must be between 1 and 250 inclusive.'); + return; } await message.channel.fetch( { limit: amount } ).then(messages => {