Throttling for certain commands

This commit is contained in:
Daniel Odendahl Jr
2017-03-31 00:42:35 +00:00
parent ad57c32484
commit 5410c97f2c
4 changed files with 17 additions and 1 deletions
+4
View File
@@ -17,6 +17,10 @@ module.exports = class PruneCommand extends commando.Command {
description: 'Deletes a defined number of messages from the current channel, up to 99. (;prune 45)',
examples: [";prune 45"],
guildOnly: true,
throttling: {
usages: 1,
duration: 60
},
args: [{
key: 'count',
prompt: 'How many messages do you want to delete? Limit of up to 99.',