From 8ebf4cb9f8bc128b07efa122b3a84f97ecd4516b Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 20:32:40 -0500 Subject: [PATCH] Increase amount by 1 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 60edbf2..028f839 100644 --- a/index.js +++ b/index.js @@ -40,7 +40,7 @@ async function bulkDelete(message) { return; } - await message.channel.messages.fetch( { limit: amount } ).then(messages => { + await message.channel.messages.fetch( { limit: amount + 1 } ).then(messages => { message.channel.bulkDelete(messages).catch(console.error); }).catch(console.error); }