diff --git a/index.js b/index.js index 6b452d9..74635be 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ client.on("message", message => { }); async function bulkDelete(message) { - const amount = Integer.parseInt(message.content.substring(12)); + const amount = parseInt(message.content.substring(12)); if (!amount) { message.reply('please add the number of messages to be deleted!');