Skip to content
Snippets Groups Projects
Commit 983f911b authored by Levatax's avatar Levatax
Browse files

Update deletemessage.js

parent 79b048ec
Branches
No related tags found
No related merge requests found
......@@ -2,10 +2,10 @@ const Discord = require('discord.js');
exports.run = function(client, message, args) {
let messagecount = parseInt(args.join(' '));
if (messagecount.length < 1) return message.channel.send('How Much Messages You Want Me Delete?')
if (messagecount > 99) return message.channel.send('I Cant Delete More Than 100 Message!');
if (messagecount.length < 1) return message.channel.send('How much messages?')
if (messagecount > 99) return message.channel.send(`I can't delete more than 100 message!`);
message.channel.bulkDelete(messagecount + 1);
message.channel.send('Deleted' + messagecount + 'Messages!')
message.channel.send('Deleted' + messagecount + 'messages!')
};
exports.conf = {
......@@ -17,6 +17,6 @@ exports.conf = {
exports.help = {
name: 'delete',
description: 'Deletes Up To 100 Message',
description: 'Deletes up to 100 message',
usage: '*delete (messagecount)'
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment