Browse Source

Use substring instead of slice

master
Abheek Dhawan 4 years ago
parent
commit
c4f7374a51
  1. 3
      index.js

3
index.js

@ -21,8 +21,7 @@ client.on("message", message => {
});
async function bulkDelete(message) {
const args = message.content.split(' ').slice(1);
const amount = args.join(' ');
const amount = message.content.substring(0, 12);
if (!amount) {
message.reply('please add the number of messages to be deleted!');

Loading…
Cancel
Save